gitea_webhooks/configs/nginx.conf

36 lines
1.3 KiB
Nginx Configuration File
Raw Permalink Normal View History

2021-01-12 21:53:49 +00:00
user www;
worker_processes auto; # it will be determinate automatically by the number of core
error_log /var/log/nginx/error.log warn;
pid /run/nginx.pid;
#pid /var/run/nginx/nginx.pid; # it permit you to use /etc/init.d/nginx reload|restart|stop|start
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
access_log /var/log/nginx/access.log;
keepalive_timeout 3000;
server {
2021-01-12 23:03:32 +00:00
listen 80 default_server;
2021-01-13 18:38:16 +00:00
listen [::]:80 default_server;
2021-01-12 21:53:49 +00:00
root /www;
index index.html index.htm index.php;
2021-01-12 23:03:32 +00:00
server_name %%DOMAIN_NAME%%;
2021-01-12 21:53:49 +00:00
client_max_body_size 32m;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/lib/nginx/html;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
}
}