Blame public/fs/etc/nginx/vhosts.d/docs.foss21.org.conf
|
root@culturestrings |
94a729 |
server {
|
|
root@culturestrings |
94a729 |
listen [::]:80;
|
|
root@culturestrings |
94a729 |
server_name docs.foss21.org;
|
|
root@culturestrings |
94a729 |
return 301 https://$server_name$request_uri;
|
|
root@culturestrings |
94a729 |
}
|
|
root@culturestrings |
94a729 |
|
|
root@culturestrings |
94a729 |
server {
|
|
root@culturestrings |
94a729 |
listen [::]:443;
|
|
root@culturestrings |
94a729 |
server_name docs.foss21.org;
|
|
root@culturestrings |
94a729 |
root /srv/www/htdocs;
|
|
root@culturestrings |
94a729 |
|
|
root@culturestrings |
94a729 |
|
|
root@culturestrings |
94a729 |
access_log /var/log/nginx/pagure_docs.access.log;
|
|
root@culturestrings |
94a729 |
error_log /var/log/nginx/pagure_docs.error.log;
|
|
root@culturestrings |
94a729 |
|
|
root@culturestrings |
94a729 |
|
|
root@culturestrings |
94a729 |
location @pagure_docs {
|
|
root@culturestrings |
94a729 |
proxy_set_header Host $http_host;
|
|
root@culturestrings |
94a729 |
proxy_set_header X-Real-IP $remote_addr;
|
|
root@culturestrings |
94a729 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
root@culturestrings |
94a729 |
proxy_set_header X-Forwarded-Proto $scheme;
|
|
root@culturestrings |
94a729 |
proxy_pass http://unix:/tmp/.pagure_docs_web.sock;
|
|
root@culturestrings |
94a729 |
}
|
|
root@culturestrings |
94a729 |
|
|
root@culturestrings |
94a729 |
location / {
|
|
root@culturestrings |
94a729 |
try_files $uri @pagure_docs;
|
|
root@culturestrings |
94a729 |
}
|
|
root@culturestrings |
94a729 |
|
|
root@culturestrings |
94a729 |
location /static {
|
|
root@culturestrings |
94a729 |
alias /usr/lib/python3.6/site-packages/pagure/static/;
|
|
root@culturestrings |
94a729 |
}
|
|
root@culturestrings |
94a729 |
|
|
root@culturestrings |
94a729 |
ssl_certificate /home/webroot/foss21.org/ssl/fullchain.pem;
|
|
root@culturestrings |
94a729 |
ssl_certificate_key /home/webroot/foss21.org/ssl/privkey.pem;
|
|
root@culturestrings |
94a729 |
ssl_trusted_certificate /home/webroot/foss21.org/ssl/chain.pem;
|
|
root@culturestrings |
94a729 |
|
|
root@culturestrings |
94a729 |
include conf.d/ssl_params;
|
|
root@culturestrings |
94a729 |
}
|