Files
our_recipe_atlas/deploy/nginx.example.conf
T

51 lines
1.3 KiB
Plaintext

server {
listen 80;
listen [::]:80;
server_name recipeatlas.horoli.kr;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
listen [::]:443 ssl http2;
server_name recipeatlas.horoli.kr;
ssl_certificate /etc/letsencrypt/live/horoli.kr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/horoli.kr/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
add_header X-Content-Type-Options nosniff always;
add_header Referrer-Policy strict-origin-when-cross-origin always;
client_max_body_size 10m;
access_log /var/log/nginx/recipeatlas.horoli.kr.access.log;
error_log /var/log/nginx/recipeatlas.horoli.kr.error.log;
location / {
proxy_pass http://192.168.0.250:1771;
proxy_http_version 1.1;
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;
proxy_set_header X-Forwarded-Host $host;
proxy_redirect off;
proxy_connect_timeout 30s;
proxy_send_timeout 360s;
proxy_read_timeout 360s;
}
}