blob: bca885295f0e882c5e3f86f85fd109263c27282f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 /srv/webroot/midipix.org/ssl/fullchain.pem;
ssl_certificate_key /srv/webroot/midipix.org/ssl/privkey.pem;
ssl_trusted_certificate /srv/webroot/midipix.org/ssl/chain.pem;
include conf.d/ssl_params;
}
|