mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:05:31 +02:00
41 lines
1.3 KiB
Plaintext
41 lines
1.3 KiB
Plaintext
upstream django_server_acceptance.random8289.random17507.example.org {
|
|
server unix:/srv/http/random8289/acceptance/website.sock;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name random23045.example.org;
|
|
|
|
location /media/ {
|
|
alias /srv/http/random8289/acceptance/dynamic/public/;
|
|
expires 7d;
|
|
include upload_folder_security_params;
|
|
}
|
|
location /static/ {
|
|
alias /srv/http/random8289/acceptance/static_collected/;
|
|
expires 7d;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://django_server_acceptance.random8289.random17507.example.org;
|
|
proxy_set_header Host $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-Protocol $scheme;
|
|
|
|
satisfy any;
|
|
auth_basic 'random8289 acceptance';
|
|
auth_basic_user_file /srv/http/random8289/acceptance/htpasswords;
|
|
include /etc/nginx/allow_ytec_ips_params;
|
|
deny all;
|
|
}
|
|
|
|
access_log /var/log/nginx/random8289/acceptance/access.log combined_plus;
|
|
error_log /var/log/nginx/random8289/acceptance/error.log;
|
|
}
|
|
|
|
server {
|
|
server_name www.random23045.example.org;
|
|
return 301 http://random23045.example.org$request_uri;
|
|
}
|