Merge pull request #111 from OCSInventory-NG/root_redirect

refactor(nginx): redirect to ocsreports
This commit is contained in:
Charlène Auger 2023-12-18 14:06:17 +01:00 committed by GitHub
commit 3ebd025290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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;

View File

@ -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;