1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-03 23:56:22 -07:00
gochan/sample-configs/gochan-http.nginx
2020-10-11 14:59:06 -07:00

25 lines
499 B
Nginx Configuration File

# pass everything to gochan via HTTP
# this should go in /etc/nginx/sites-enabled. Change as necessary.
server {
listen 80;
listen [::]:80;
listen 443 ssl;
listen [::]:443 ssl ipv6only=on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_certificate /etc/ssl/certs/nginx-selfsigned.crt;
ssl_certificate_key /etc/ssl/private/nginx-selfsigned.key;
server_name localhost;
client_max_body_size 12M;
location / {
proxy_pass http://127.0.0.1:8080;
}
location ~ /\.ht {
deny all;
}
}