aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docker/frontend/etc/nginx/http.d/default.conf
diff options
context:
space:
mode:
Diffstat (limited to 'docker/frontend/etc/nginx/http.d/default.conf')
-rw-r--r--docker/frontend/etc/nginx/http.d/default.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/docker/frontend/etc/nginx/http.d/default.conf b/docker/frontend/etc/nginx/http.d/default.conf
new file mode 100644
index 0000000..dc27e85
--- /dev/null
+++ b/docker/frontend/etc/nginx/http.d/default.conf
@@ -0,0 +1,20 @@
+server {
+ listen 80 default_server;
+ listen [::]:80 default_server;
+ server_name _;
+
+ location / {
+ include fastcgi_params;
+ fastcgi_pass unix:/run/fcgiwrap.sock;
+
+ fastcgi_param SCRIPT_FILENAME /usr/share/webapps/cgit/cgit.cgi;
+
+ # This looks stupid. Can I substitute any variable for $fastcgi_path_info?
+ fastcgi_split_path_info ^(/?)(.+)$;
+ fastcgi_param PATH_INFO $fastcgi_path_info;
+ }
+
+ location /cgit/ {
+ alias /usr/share/webapps/cgit/;
+ }
+}