1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-09-05 11:06:23 -07:00
gochan/examples/configs/gochan-http.nginx

26 lines
499 B
Text
Raw Normal View History

2017-08-06 15:39:05 -07:00
# pass everything to gochan via HTTP
# this should go in /etc/nginx/sites-enabled. Change as necessary.
2018-01-24 19:43:05 -08:00
2017-08-06 15:39:05 -07:00
server {
2020-10-11 14:59:06 -07:00
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;
2019-08-01 21:05:06 -07:00
client_max_body_size 12M;
2018-01-24 19:43:05 -08:00
2017-08-06 15:39:05 -07:00
location / {
proxy_pass http://127.0.0.1:8080;
}
location ~ /\.ht {
deny all;
}
}