1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-05 12:56:22 -07:00
gochan/gochan-fastcgi.nginx

22 lines
461 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;
server_name localhost;
client_max_body_size 5M;
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;
}
}