Blame public/fs/etc/nginx/vhosts.d/nginx.pagure.docs.conf.in
|
root@culturestrings |
94a729 |
server {
|
|
root@culturestrings |
94a729 |
listen [::]:80;
|
|
root@culturestrings |
281232 |
server_name @sitesubd@;
|
|
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 |
281232 |
server_name @sitesubd@;
|
|
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 |
281232 |
ssl_certificate /srv/webroot/@sitezone@/ssl/fullchain.pem;
|
|
root@culturestrings |
281232 |
ssl_certificate_key /srv/webroot/@sitezone@/ssl/privkey.pem;
|
|
root@culturestrings |
281232 |
ssl_trusted_certificate /srv/webroot/@sitezone@/ssl/chain.pem;
|
|
root@culturestrings |
94a729 |
|
|
root@culturestrings |
94a729 |
include conf.d/ssl_params;
|
|
root@culturestrings |
94a729 |
}
|