From 9558d88a40443454d2e2bd60d970796cf8f4fa3c Mon Sep 17 00:00:00 2001 From: Henit Chobisa Date: Thu, 21 Sep 2023 11:54:07 +0000 Subject: [PATCH] chore: added rewrite logic, to rewrite index to /home --- nginx/nginx.conf.template | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nginx/nginx.conf.template b/nginx/nginx.conf.template index 36a68fa55..d44a4a742 100644 --- a/nginx/nginx.conf.template +++ b/nginx/nginx.conf.template @@ -10,6 +10,11 @@ http { client_max_body_size ${FILE_SIZE_LIMIT}; + add_header X-Content-Type-Options "nosniff" always; + add_header Referrer-Policy "no-referrer-when-downgrade" always; + add_header Permissions-Policy "interest-cohort=()" always; + add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; + location / { proxy_pass http://planefrontend:3000/; } @@ -19,6 +24,7 @@ http { } location /spaces/ { + rewrite ^/spaces/?$ /spaces/home break; proxy_pass http://planedeploy:3000/spaces/; } @@ -26,4 +32,4 @@ http { proxy_pass http://plane-minio:9000/uploads/; } } -} \ No newline at end of file +}