diff options
author | root@culturestrings <root@culturestrings> | 2020-05-25 03:09:26 +0000 |
---|---|---|
committer | root@culturestrings <root@culturestrings> | 2020-05-25 03:21:11 +0000 |
commit | 94a72966d424515e161f706796681a8fda5187ab (patch) | |
tree | 28d029e677cd9b2059deedabdcce0477e5ca0106 /public | |
parent | 41c9d20b75e76e94474ea9136ccf5b9e17e58013 (diff) | |
download | culturestrings-94a72966d424515e161f706796681a8fda5187ab.tar.bz2 culturestrings-94a72966d424515e161f706796681a8fda5187ab.tar.xz |
web: pagure: added docs.foss21.org.
Diffstat (limited to 'public')
-rw-r--r-- | public/fs/etc/nginx/vhosts.d/docs.foss21.org.conf | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/public/fs/etc/nginx/vhosts.d/docs.foss21.org.conf b/public/fs/etc/nginx/vhosts.d/docs.foss21.org.conf new file mode 100644 index 0000000..797df4e --- /dev/null +++ b/public/fs/etc/nginx/vhosts.d/docs.foss21.org.conf @@ -0,0 +1,38 @@ +server { + listen [::]:80; + server_name docs.foss21.org; + return 301 https://$server_name$request_uri; +} + +server { + listen [::]:443; + server_name docs.foss21.org; + root /srv/www/htdocs; + + + access_log /var/log/nginx/pagure_docs.access.log; + error_log /var/log/nginx/pagure_docs.error.log; + + + location @pagure_docs { + 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_docs_web.sock; + } + + location / { + try_files $uri @pagure_docs; + } + + location /static { + alias /usr/lib/python3.6/site-packages/pagure/static/; + } + + ssl_certificate /home/webroot/foss21.org/ssl/fullchain.pem; + ssl_certificate_key /home/webroot/foss21.org/ssl/privkey.pem; + ssl_trusted_certificate /home/webroot/foss21.org/ssl/chain.pem; + + include conf.d/ssl_params; +} |