chore: added rewrite logic, to rewrite index to /home

This commit is contained in:
Henit Chobisa 2023-09-21 11:54:07 +00:00
parent d5555117e5
commit 9558d88a40

View File

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