From afbac86563ace1068b5ce05e0b88939c905cd1e0 Mon Sep 17 00:00:00 2001 From: "root@culturestrings" Date: Tue, 26 May 2020 19:14:43 +0000 Subject: web: switched subdomain (pagure.midipix.org ==> dev.midipix.org). --- public/fs/etc/nginx/vhosts.d/dev.midipix.org.conf | 43 ++++++++++++++++++++++ .../fs/etc/nginx/vhosts.d/pagure.midipix.org.conf | 43 ---------------------- 2 files changed, 43 insertions(+), 43 deletions(-) create mode 100644 public/fs/etc/nginx/vhosts.d/dev.midipix.org.conf delete mode 100644 public/fs/etc/nginx/vhosts.d/pagure.midipix.org.conf diff --git a/public/fs/etc/nginx/vhosts.d/dev.midipix.org.conf b/public/fs/etc/nginx/vhosts.d/dev.midipix.org.conf new file mode 100644 index 0000000..2a47b07 --- /dev/null +++ b/public/fs/etc/nginx/vhosts.d/dev.midipix.org.conf @@ -0,0 +1,43 @@ +server { + listen [::]:80; + server_name dev.midipix.org; + return 301 https://$server_name$request_uri; +} + +server { + listen [::]:443; + server_name dev.midipix.org; + root /srv/www/htdocs; + + + access_log /var/log/nginx/pagure_access.log; + error_log /var/log/nginx/pagure_error.log; + + + location @pagure { + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_pass http://unix:/tmp/.pagure_web.sock; + } + + location / { + try_files $uri @pagure; + } + + location /static { + alias /usr/lib/python3.6/site-packages/pagure/static/; + } + + location /releases { + alias /srv/www/pagure-releases/; + autoindex on; + } + + ssl_certificate /home/webroot/midipix.org/ssl/fullchain.pem; + ssl_certificate_key /home/webroot/midipix.org/ssl/privkey.pem; + ssl_trusted_certificate /home/webroot/midipix.org/ssl/chain.pem; + + include conf.d/ssl_params; +} diff --git a/public/fs/etc/nginx/vhosts.d/pagure.midipix.org.conf b/public/fs/etc/nginx/vhosts.d/pagure.midipix.org.conf deleted file mode 100644 index a0069c5..0000000 --- a/public/fs/etc/nginx/vhosts.d/pagure.midipix.org.conf +++ /dev/null @@ -1,43 +0,0 @@ -server { - listen [::]:80; - server_name pagure.midipix.org; - return 301 https://$server_name$request_uri; -} - -server { - listen [::]:443; - server_name pagure.midipix.org; - root /srv/www/htdocs; - - - access_log /var/log/nginx/pagure.access.log; - error_log /var/log/nginx/pagure.error.log; - - - location @pagure { - proxy_set_header Host $http_host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Proto $scheme; - proxy_pass http://unix:/tmp/.pagure_web.sock; - } - - location / { - try_files $uri @pagure; - } - - location /static { - alias /usr/lib/python3.6/site-packages/pagure/static/; - } - - location /releases { - alias /srv/www/pagure-releases/; - autoindex on; - } - - ssl_certificate /home/webroot/midipix.org/ssl/fullchain.pem; - ssl_certificate_key /home/webroot/midipix.org/ssl/privkey.pem; - ssl_trusted_certificate /home/webroot/midipix.org/ssl/chain.pem; - - include conf.d/ssl_params; -} -- cgit v1.2.3