1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 15:06:23 -07:00
gochan/sample-configs/gochan-fastcgi.nginx
Eggbertx e2339f98ef Make templates dynamic so I don't forget
Also officially bump up version to 3.0 🎉
2022-01-30 11:56:59 -08:00

28 lines
666 B
Nginx Configuration File

# Pass everything to gochan via FastCGI
# This should go in /etc/nginx/sites-enabled, as a symbolic link if you're using vagrant.
# Change as necessary (duh).
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 / {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.html;
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}