summaryrefslogtreecommitdiff
path: root/cgit/nginx
diff options
context:
space:
mode:
authorrafa_99 <raroma09@gmail.com>2022-04-24 01:32:53 +0100
committerrafa_99 <raroma09@gmail.com>2022-04-24 01:32:53 +0100
commitfeac620aaf34c903a432ddd02404fd17456f6705 (patch)
tree9afd8a6849ce55424510a63214a65eed07b205a6 /cgit/nginx
parent57901bc2dbbd276505e1a660ed94b255ec3457dd (diff)
Updated webserver structure into subdirectories
Diffstat (limited to 'cgit/nginx')
-rw-r--r--cgit/nginx/pages/cgit.conf10
-rw-r--r--cgit/nginx/sites-available/server12
2 files changed, 22 insertions, 0 deletions
diff --git a/cgit/nginx/pages/cgit.conf b/cgit/nginx/pages/cgit.conf
new file mode 100644
index 0000000..9d3f7ef
--- /dev/null
+++ b/cgit/nginx/pages/cgit.conf
@@ -0,0 +1,10 @@
+root /usr/share/cgit ;
+location /git
+{
+ include fastcgi_params;
+ fastcgi_param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi;
+ fastcgi_pass unix:/run/fcgiwrap.socket;
+ fastcgi_param PATH_INFO $fastcgi_path_info;
+ fastcgi_param QUERY_STRING $args;
+ fastcgi_split_path_info ^(/git/?)(.+)$;
+}
diff --git a/cgit/nginx/sites-available/server b/cgit/nginx/sites-available/server
new file mode 100644
index 0000000..ba75367
--- /dev/null
+++ b/cgit/nginx/sites-available/server
@@ -0,0 +1,12 @@
+server
+{
+ server_name hostname.local;
+
+ listen 443 ssl;
+ listen [::]:443 ssl;
+
+ ssl_certificate /etc/nginx/certs/localhost.crt;
+ ssl_certificate_key /etc/nginx/certs/localhost.key;
+
+ include pages/*.conf;
+}