aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nginx_amt-jb.conf18
1 files changed, 12 insertions, 6 deletions
diff --git a/nginx_amt-jb.conf b/nginx_amt-jb.conf
index 1964347..6d6947c 100644
--- a/nginx_amt-jb.conf
+++ b/nginx_amt-jb.conf
@@ -10,17 +10,15 @@ server {
real_ip_header X-Forwarded-For;
real_ip_recursive on;
+ add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0" always;
+ expires off;
+
# max upload size
client_max_body_size 1M; # adjust to taste
# Internally add a trailing slash while preserving the request method and body.
rewrite ^([^.]*[^/])$ $1/ break;
- location / {
- include nginx_amt-jb_proxy_pass.conf;
- proxy_pass http://uvicorn;
- }
-
location = /favicon.ico {
access_log off;
return 200 '{}';
@@ -31,13 +29,21 @@ server {
add_header 'Content-Type' 'application/json';
return 200 '{"status":"ok"}';
}
+
+ location / {
+ include nginx_amt-jb_proxy_pass.conf;
+ proxy_pass http://uvicorn;
+ add_header Cache-Control "no-store, no-cache, must-revalidate";
+ }
+
}
server {
listen 8080;
server_name cdn.jamesbillings67.com;
+ include /etc/nginx/mime.types;
location / {
- alias /root/amt-jb/static/;
+ alias /var/www/amt-jb-cdn/;
}
}