diff options
| author | haturatu <taro@eyes4you.org> | 2026-04-21 05:21:33 +0900 |
|---|---|---|
| committer | haturatu <taro@eyes4you.org> | 2026-04-21 05:21:33 +0900 |
| commit | 836cdbbcb566a36c16b28305b50a502fa09f2c97 (patch) | |
| tree | 796904fec1e2536e83630be181d9f3777bd2de3e /docker/nginx.conf | |
Diffstat (limited to 'docker/nginx.conf')
| -rw-r--r-- | docker/nginx.conf | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/docker/nginx.conf b/docker/nginx.conf new file mode 100644 index 0000000..0a5cf5d --- /dev/null +++ b/docker/nginx.conf @@ -0,0 +1,47 @@ +user www-data; +worker_processes auto; + +events { + worker_connections 1024; +} + +http { + include /etc/nginx/mime.types; + default_type application/octet-stream; + + access_log /dev/stdout; + error_log /dev/stderr warn; + + sendfile on; + tcp_nopush on; + keepalive_timeout 65; + + server { + listen 80 default_server; + server_name _; + + root /usr/share/cgit; + index cgit.css; + + location /cgit.css { + try_files $uri =404; + } + + location /cgit.png { + try_files $uri =404; + } + + location /favicon.ico { + try_files /cgit.png =404; + } + + location / { + include fastcgi_params; + fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi; + fastcgi_param PATH_INFO $uri; + fastcgi_param QUERY_STRING $query_string; + fastcgi_pass unix:/run/fcgiwrap/fcgiwrap.sock; + fastcgi_read_timeout 60s; + } + } +} |
