2020-02-16 03:32:00 +00:00
|
|
|
user git git;
|
|
|
|
worker_processes 1;
|
|
|
|
pid /run/nginx.pid;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
http {
|
|
|
|
|
|
|
|
sendfile on;
|
|
|
|
tcp_nopush on;
|
|
|
|
tcp_nodelay on;
|
|
|
|
keepalive_timeout 15;
|
|
|
|
types_hash_max_size 2048;
|
|
|
|
|
|
|
|
include /etc/nginx/mime.types;
|
|
|
|
default_type application/octet-stream;
|
|
|
|
|
|
|
|
access_log /var/log/nginx/access.log;
|
|
|
|
error_log /var/log/nginx/error.log;
|
|
|
|
|
|
|
|
server_names_hash_bucket_size 64;
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
server_name MYSERVER default;
|
2020-02-16 20:07:45 +00:00
|
|
|
root /var/www;
|
2020-02-16 03:32:00 +00:00
|
|
|
|
|
|
|
access_log /var/log/nginx/MYSERVER.access.log combined;
|
|
|
|
error_log /var/log/nginx/MYSERVER.error.log error;
|
|
|
|
|
|
|
|
#git SMART HTTP
|
2020-03-29 20:59:01 +00:00
|
|
|
location / {
|
2020-02-16 03:32:00 +00:00
|
|
|
client_max_body_size 0;
|
|
|
|
fastcgi_param SCRIPT_FILENAME /usr/lib/git-core/git-http-backend;
|
|
|
|
fastcgi_param GIT_HTTP_EXPORT_ALL "";
|
|
|
|
fastcgi_param GIT_PROJECT_ROOT /repos;
|
2020-03-29 20:59:01 +00:00
|
|
|
fastcgi_param PATH_INFO $uri;
|
2020-02-16 03:32:00 +00:00
|
|
|
include /etc/nginx/fastcgi_params;
|
|
|
|
fastcgi_pass unix:/var/run/fcgiwrap.socket;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|