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

Add example nginx configuration files

This commit is contained in:
Joshua Merrell 2017-08-06 15:39:05 -07:00
parent b7e9815ebd
commit 41fa3a7c04
2 changed files with 35 additions and 0 deletions

19
gochan-fcgi.conf Normal file
View file

@ -0,0 +1,19 @@
# pass everything to gochan via FastCGI
# this should go in /etc/nginx/sites-enabled. Change as necessary.
#
server {
listen 80;
server_name localhost;
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;
}
}

16
gochan-http.conf Normal file
View file

@ -0,0 +1,16 @@
# pass everything to gochan via HTTP
# this should go in /etc/nginx/sites-enabled. Change as necessary.
#
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://127.0.0.1:8080;
}
location ~ /\.ht {
deny all;
}
}