summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot@culturestrings <root@culturestrings>2020-05-18 09:04:19 +0000
committerroot@culturestrings <root@culturestrings>2020-05-18 09:04:19 +0000
commit471b9f4550fa5f964a660ebbca42cb2e2408f3a0 (patch)
tree734c214ca0fcbce412057632450f906c57b08fa0
parent07947eaedd0f4563a74ded73966f87a3f09d9eb5 (diff)
downloadculturestrings-471b9f4550fa5f964a660ebbca42cb2e2408f3a0.tar.bz2
culturestrings-471b9f4550fa5f964a660ebbca42cb2e2408f3a0.tar.xz
web: virtual hosts: added git.midipix.org and git.foss21.org.
-rw-r--r--public/fs/etc/nginx/vhosts.d/git.foss21.org.conf36
-rw-r--r--public/fs/etc/nginx/vhosts.d/git.midipix.org.conf36
2 files changed, 72 insertions, 0 deletions
diff --git a/public/fs/etc/nginx/vhosts.d/git.foss21.org.conf b/public/fs/etc/nginx/vhosts.d/git.foss21.org.conf
new file mode 100644
index 0000000..3b0cf57
--- /dev/null
+++ b/public/fs/etc/nginx/vhosts.d/git.foss21.org.conf
@@ -0,0 +1,36 @@
+server {
+ listen [::]:80;
+ server_name git.foss21.org;
+ return 301 https://$server_name$request_uri;
+}
+
+server {
+ listen [::]:443;
+ server_name git.foss21.org;
+ root /srv/www/htdocs;
+
+ location /cgit.cgi {
+ rewrite ^/cgit.cgi(/.*)$ $1 last;
+ }
+
+ location / {
+ try_files $uri @cgit;
+ }
+
+ location @cgit {
+ include uwsgi_params;
+ uwsgi_modifier1 9;
+ uwsgi_pass unix:/run/uwsgi/cgit.socket;
+
+ uwsgi_param CGIT_CONFIG "/etc/cgit.d/cgitrc.foss21.org";
+ uwsgi_param PATH_INFO $uri;
+ uwsgi_param QUERY_STRING $args;
+ uwsgi_param HTTP_HOST $server_name;
+ uwsgi_param SCRIPT_FILENAME $document_root/cgit.cgi;
+ }
+
+ ssl_certificate /etc/nginx/certs.d/culturestrings.org/ssl/fullchain.pem;
+ ssl_certificate_key /etc/nginx/certs.d/culturestrings.org/ssl/privkey.pem;
+
+ include conf.d/ssl_params;
+}
diff --git a/public/fs/etc/nginx/vhosts.d/git.midipix.org.conf b/public/fs/etc/nginx/vhosts.d/git.midipix.org.conf
new file mode 100644
index 0000000..4b014be
--- /dev/null
+++ b/public/fs/etc/nginx/vhosts.d/git.midipix.org.conf
@@ -0,0 +1,36 @@
+server {
+ listen [::]:80;
+ server_name git.midipix.org;
+ return 301 https://$server_name$request_uri;
+}
+
+server {
+ listen [::]:443;
+ server_name git.midipix.org;
+ root /srv/www/htdocs;
+
+ location /cgit.cgi {
+ rewrite ^/cgit.cgi(/.*)$ $1 last;
+ }
+
+ location / {
+ try_files $uri @cgit;
+ }
+
+ location @cgit {
+ include uwsgi_params;
+ uwsgi_modifier1 9;
+ uwsgi_pass unix:/run/uwsgi/cgit.socket;
+
+ uwsgi_param CGIT_CONFIG "/etc/cgit.d/cgitrc.midipix.org";
+ uwsgi_param PATH_INFO $uri;
+ uwsgi_param QUERY_STRING $args;
+ uwsgi_param HTTP_HOST $server_name;
+ uwsgi_param SCRIPT_FILENAME $document_root/cgit.cgi;
+ }
+
+ ssl_certificate /etc/nginx/certs.d/culturestrings.org/ssl/fullchain.pem;
+ ssl_certificate_key /etc/nginx/certs.d/culturestrings.org/ssl/privkey.pem;
+
+ include conf.d/ssl_params;
+}