Blame public/fs/etc/nginx/vhosts.d/nginx.pagure.main.conf.in
|
root@culturestrings |
2679c0 |
server {
|
|
root@culturestrings |
2679c0 |
listen [::]:80;
|
|
root@culturestrings |
281232 |
server_name @sitesubd@;
|
|
root@culturestrings |
2679c0 |
return 301 https://$server_name$request_uri;
|
|
root@culturestrings |
2679c0 |
}
|
|
root@culturestrings |
2679c0 |
|
|
root@culturestrings |
2679c0 |
server {
|
|
root@culturestrings |
2679c0 |
listen [::]:443;
|
|
root@culturestrings |
281232 |
server_name @sitesubd@;
|
|
root@culturestrings |
2679c0 |
root /srv/www/htdocs;
|
|
root@culturestrings |
2679c0 |
|
|
root@culturestrings |
2679c0 |
|
|
root@culturestrings |
afbac8 |
access_log /var/log/nginx/pagure_access.log;
|
|
root@culturestrings |
afbac8 |
error_log /var/log/nginx/pagure_error.log;
|
|
root@culturestrings |
2679c0 |
|
|
root@culturestrings |
2679c0 |
|
|
root@culturestrings |
2679c0 |
location @pagure {
|
|
root@culturestrings |
2679c0 |
proxy_set_header Host $http_host;
|
|
root@culturestrings |
2679c0 |
proxy_set_header X-Real-IP $remote_addr;
|
|
root@culturestrings |
2679c0 |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
root@culturestrings |
2679c0 |
proxy_set_header X-Forwarded-Proto $scheme;
|
|
root@culturestrings |
2679c0 |
proxy_pass http://unix:/tmp/.pagure_web.sock;
|
|
root@culturestrings |
2679c0 |
}
|
|
root@culturestrings |
2679c0 |
|
|
root@culturestrings |
2679c0 |
location / {
|
|
root@culturestrings |
2679c0 |
try_files $uri @pagure;
|
|
root@culturestrings |
2679c0 |
}
|
|
root@culturestrings |
2679c0 |
|
|
root@culturestrings |
2679c0 |
location /static {
|
|
root@culturestrings |
2679c0 |
alias /usr/lib/python3.6/site-packages/pagure/static/;
|
|
root@culturestrings |
2679c0 |
}
|
|
root@culturestrings |
2679c0 |
|
|
root@culturestrings |
2679c0 |
location /releases {
|
|
root@culturestrings |
2679c0 |
alias /srv/www/pagure-releases/;
|
|
root@culturestrings |
2679c0 |
autoindex on;
|
|
root@culturestrings |
2679c0 |
}
|
|
root@culturestrings |
2679c0 |
|
|
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 |
2679c0 |
|
|
root@culturestrings |
2679c0 |
include conf.d/ssl_params;
|
|
root@culturestrings |
2679c0 |
}
|