# PCA Lab / Domain Web — HTTP :80 (does not touch :443 / Amnezia) # Placeholders WEB_ROOT are replaced by install.sh server { listen 80 default_server; listen [::]:80 default_server; server_name _; root WEB_ROOT; index index.html; # Clean URL for domain search location = /search { try_files /search.html =404; } location = /search.html { return 301 /search; } include /etc/nginx/snippets/domain-web-api.conf; location / { try_files $uri $uri/ /index.html; } location ~* \.(json|jsx|html|css|js|png|jpg|svg|ico|woff2?)$ { expires 1h; add_header Cache-Control "public"; } access_log /var/log/nginx/domain-web-access.log; error_log /var/log/nginx/domain-web-error.log; }