deploiement/roles/cgit/templates/cgit-nginx

25 lines
601 B
Text
Raw Normal View History

2022-05-15 01:35:49 +02:00
{{ ansible_managed | comment }}
server {
server_name {{ cgit_site }};
listen [::]:80;
listen 80;
access_log /var/log/nginx/cgit-access.log;
error_log /var/log/nginx/cgit-error.log;
root {{ path_cgit }}/cgi;
try_files $uri @cgit;
location @cgit {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME {{ path_cgit }}/cgi/cgit.cgi;
fastcgi_pass unix:/run/fcgiwrap.socket;
fastcgi_param PATH_INFO $uri;
fastcgi_param QUERY_STRING $args;
fastcgi_param HTTP_HOST $server_name;
}
}