Skip to content
Snippets Groups Projects
Commit 11412e2a authored by Mihail Gorceag's avatar Mihail Gorceag
Browse files

feat: fix nginx reverse proxy for some paths

parent 89ce1a33
No related branches found
No related tags found
No related merge requests found
......@@ -39,11 +39,26 @@ server {
expires off;
}
location /auth {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://server:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header X-Forwarded-Proto $scheme;
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
proxy_set_header Host $host;
proxy_cache_bypass 1;
proxy_no_cache 1;
expires off;
}
location ~ ^/(api|graphql|auth|convertDocxToHTML|public|/static/uploads|/static/profiles|subscriptions)/ {
location ~ ^/(api|graphql|convertDocxToHTML|public|/static/uploads|/static/profiles|subscriptions)/ {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $http_host;
proxy_pass http://localhost:3000;
proxy_pass http://server:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment