mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:05:31 +02:00
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
upstream django_server_random7474.example.org {
|
|
server unix:/srv/http/random4886/acceptance/website.sock;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name random7474.example.org;
|
|
|
|
location /media/ {
|
|
alias /srv/http/random4886/acceptance/dynamic/public/;
|
|
expires 7d;
|
|
}
|
|
location /static/ {
|
|
alias /srv/http/random4886/acceptance/static_collected/;
|
|
expires 7d;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://django_server_random7474.example.org;
|
|
include /etc/nginx/proxy_params;
|
|
|
|
satisfy any;
|
|
auth_basic 'acceptance for random4886';
|
|
auth_basic_user_file /srv/http/random4886/acceptance/htpasswords;
|
|
include /etc/nginx/allow_ytec_ips_params;
|
|
deny all;
|
|
}
|
|
|
|
client_max_body_size 20m;
|
|
|
|
access_log /var/log/nginx/random4886/acceptance/access.log;
|
|
error_log /var/log/nginx/random4886/acceptance/error.log;
|
|
}
|
|
|
|
server {
|
|
server_name www.random7474.example.org;
|
|
return 301 http://random7474.example.org$request_uri;
|
|
}
|