Files
tsumugu/nginx/tsumugu.conf
LarsandCursor 353001d819
Deploy Development / deploy (push) Successful in 17s
Deploy Production / deploy (push) Successful in 16s
Lege Tsumugu auf freie Pi-Ports 3007/8007 und 3094/8094.
8006 und 8095 sind bereits durch BuyingAgent belegt.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-15 09:47:10 +02:00

58 lines
1.9 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Tsumugu – Host nginx (outside Compose)
# Install as /etc/nginx/sites-available/tsumugu and symlink into sites-enabled.
# Live TLS for the Jinkendo family terminates on the Synology Reverse Proxy
# at 192.168.2.63. Point tsumugu.jinkendo.de at http://192.168.2.49:3007.
# Set DSM proxy read/send timeout to 600s.
server {
listen 80;
server_name tsumugu.jinkendo.de;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
server_name tsumugu.jinkendo.de;
ssl_certificate /etc/letsencrypt/live/tsumugu.jinkendo.de/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/tsumugu.jinkendo.de/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
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;
client_max_body_size 80m;
gzip on;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml;
location /api/ {
proxy_pass http://127.0.0.1:8007;
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_read_timeout 600s;
}
location / {
proxy_pass http://127.0.0.1:3007;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_cache_bypass $http_upgrade;
proxy_read_timeout 600s;
}
}