mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-27 11:26:22 -07:00
increase max upload size to ~5 MB
This commit is contained in:
parent
ec1a8bac1f
commit
38682162b2
3 changed files with 15 additions and 12 deletions
|
@ -1,15 +1,17 @@
|
|||
# pass everything to gochan via FastCGI
|
||||
# this should go in /etc/nginx/sites-enabled. Change as necessary.
|
||||
#
|
||||
# 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;
|
||||
server_name localhost;
|
||||
|
||||
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;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
# pass everything to gochan via HTTP
|
||||
# this should go in /etc/nginx/sites-enabled. Change as necessary.
|
||||
#
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
client_max_body_size 5M;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ EOF123
|
|||
service mysql restart &
|
||||
wait
|
||||
rm -f /etc/nginx/sites-enabled/* /etc/nginx/sites-available/*
|
||||
cp -f /vagrant/gochan-fastcgi.nginx /etc/nginx/sites-available/gochan.nginx
|
||||
ln -sf /vagrant/gochan-fastcgi.nginx /etc/nginx/sites-available/gochan.nginx
|
||||
ln -sf /etc/nginx/sites-available/gochan.nginx /etc/nginx/sites-enabled/
|
||||
|
||||
# VirtualBox shared folders don't play nicely with sendfile.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue