Skip to content

Commit

Permalink
edit nginx rewrite for config to static-files volume path
Browse files Browse the repository at this point in the history
  • Loading branch information
acwhite211 committed Oct 24, 2024
1 parent e182978 commit 03a6ac2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lib/nginx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ server {
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
}
root /volumes;
rewrite ^/static/config/(.*)$ /specify${deployment.schemaVersion}/config/$1 break;
# rewrite ^/static/config/(.*)$ /specify${deployment.schemaVersion}/config/$1 break;
rewrite ^/static/config/(.*)$ /${deployment.hostname}-static-files/specify-config/config/$1 break;
rewrite ^/static/depository/(.*)$ /${deployment.hostname}-static-files/depository/$1 break;
rewrite ^/static/(.*)$ /${deployment.hostname}-static-files/frontend-static/$1 break;
}
Expand Down

0 comments on commit 03a6ac2

Please sign in to comment.