Skip to content
Snippets Groups Projects
Commit 6b652d3f authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

Merge branch 'ngnix_serve_assets' into 'master'

aurweb: serve assets from nginx and cache properly

See merge request !538
parents 3430e875 3399e17d
No related branches found
No related tags found
1 merge request!538aurweb: serve assets from nginx and cache properly
Pipeline #16136 passed
......@@ -71,6 +71,14 @@ server {
expires 5m;
}
location ~ ^/static/(?:css|js|images)/ {
rewrite ^/static(/.*)$ $1 break;
expires 7d;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}
location / {
# Proxy over to aurweb's ASGI application.
proxy_pass http://{{ aurweb_asgi_bind }};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment