Files

8 lines
684 B
Cheetah

access_log {{LOG}} awstats;
error_page 503 /__aw_maint;
location = /__aw_maint { internal; default_type text/html; add_header Cache-Control "no-store" always; return 503 '{{MAINT_HTML}}'; }
if (-f {{SITE_DIR}}/.maintenance) { return 503; }
if (-f {{SITE_DIR}}/.limited) { rewrite ^ /__aw_limited last; }
location = /__aw_limited { internal; default_type text/html; add_header Cache-Control "no-store" always; return 503 '{{LIMIT_HTML}}'; }
location / { proxy_pass http://127.0.0.1:{{PORT}}; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 300s; }