dehub/cmd/http-server/nginx.conf
mediocregopher 72f2a74415 specify the http root in the nginx conf file
message: specify the http root in the nginx conf file
change_hash: ABYMBF37TBQEicne63mHBjTtyz8mK2WnBqllT8AMiqeO
credentials:
- type: pgp_signature
  pub_key_id: 95C46FA6A41148AC
  body: iQIzBAABAgAdFiEEJ6tQKp6olvZKJ0lwlcRvpqQRSKwFAl5JoQwACgkQlcRvpqQRSKzNpBAAifvR6G0D2V6+VMQJeSEMOZRNBb1OfUVUai7Wpwo/AaiZM5MFz/KeMhGT/NcPHb/kttTkfO0br5xukGVu8HZlB0FHEH9UC4+A8rXPdJsgPSaL+a7Mb9a3j9jtQb7zdtSKu5Pa3GsyNpMmwjUP4RSTDcv4/G1xWxpwy7YKv6+rfZBl77pVCkNDnLDiSROSnzLLwPOkhIiVQ3ze4LpPOoUAbvowCidktWBsw992Nf5gzFaQzsSx+OcWMdi2Kko7mPL22a7UsNC+9W/YEFfZtwf2cEQ8nnHWy+Lc88bpOkexCSpYeYPSfbK+8qQW4f6TEjT0loTzQOdGOkp9d3meFtFsjE163eW3y0G6QGQjt7CJL96y+MR3WxlJrJ4qJVzj7+vB3i9gmMm1R06aVz5QJGjydRc0vykHeCZ7wlX/RP4rrbo8xrL191YSXjwI1nUwmdxWU8y7x06wGZ4fbc482WHVTpSeWWuv6qS9CITQwElu7YnF0n7dfVvAoYwBdHDxH9xqKLYqHPBeOu/z7UDiym9VIlzGXVBvgvu7hnH9a/K1I1ZANCcFCX695BuR/P02dRdX4utJf6iNXyVRaUePiQsLeFvJwhnnT+Zgm7ct+evtrNsxCoPRn/564W/e0uSartWy8mS/0qd2FmQcGMJkiA6lknvpFe2mDC6ktLNqQcajFiE=
  account: mediocregopher
2020-02-16 13:07:45 -07:00

45 lines
1.0 KiB
Nginx Configuration File

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;
root /var/www;
access_log /var/log/nginx/MYSERVER.access.log combined;
error_log /var/log/nginx/MYSERVER.error.log error;
#git SMART HTTP
location ~ /(.*\.git.*) {
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;
fastcgi_param PATH_INFO /$1;
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
}
}