Merge pull request #111 from OCSInventory-NG/root_redirect
refactor(nginx): redirect to ocsreports
This commit is contained in:
commit
3ebd025290
@ -25,6 +25,7 @@ server {
|
|||||||
ssl_certificate_key /etc/nginx/certs/${SSL_KEY};
|
ssl_certificate_key /etc/nginx/certs/${SSL_KEY};
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
rewrite ^/$ /ocsreports permanent;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
|||||||
@ -25,6 +25,7 @@ server {
|
|||||||
ssl_certificate_key /etc/nginx/certs/${SSL_KEY};
|
ssl_certificate_key /etc/nginx/certs/${SSL_KEY};
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
|
rewrite ^/$ /ocsreports permanent;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user