Files

49 lines
1.3 KiB
Nginx Configuration File

server {
listen 80;
server_name www.quikcue.com;
return 301 https://quikcue.com$request_uri;
}
server {
listen 80;
server_name quikcue.com;
root /usr/share/nginx/html;
index index.html;
absolute_redirect off;
# Proxy /api to quikcue-api service (ships/oops live ship log)
location /api/ {
proxy_pass http://quikcue-api:3001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# Redirect /work/ to first case study (no bare index = was 403)
location = /work/ {
return 301 /work/charityright/;
}
location / {
try_files $uri $uri/ $uri/index.html /index.html;
}
location /css/ {
expires 7d;
add_header Cache-Control "public, immutable";
}
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
gzip on;
gzip_types text/html text/css application/javascript text/plain;
gzip_min_length 256;
error_page 404 /404.html;
}