Files
gotosocial-vps/nginx/gotosocial.conf

35 lines
902 B
Plaintext
Raw 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.
server {
listen 80;
listen [::]:80;
server_name vase-domena.cz;
# Certbot automaticky přidá přesměrování na HTTPS
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name vase-domena.cz;
# SSL Certbot doplní automaticky
# ssl_certificate /etc/letsencrypt/live/vase-domena.cz/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/vase-domena.cz/privkey.pem;
client_max_body_size 40M;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 90s;
proxy_connect_timeout 90s;
proxy_send_timeout 90s;
}
}