mirror of
https://github.com/certbot/certbot.git
synced 2026-06-09 08:42:57 -04:00
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
upstream django_server_random31523.example.org {
|
|
server unix:/srv/http/random16722.example.org/internal/website.sock;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name random31523.example.org;
|
|
|
|
location ^~ /media/ {
|
|
alias /srv/http/random16722.example.org/internal/dynamic/public/;
|
|
expires 7d;
|
|
}
|
|
location ^~ /static/ {
|
|
alias /srv/http/random16722.example.org/internal/static_collected/;
|
|
expires 7d;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://django_server_random31523.example.org;
|
|
include /etc/nginx/proxy_params;
|
|
|
|
satisfy any;
|
|
auth_basic 'internal for random16722.example.org';
|
|
auth_basic_user_file /srv/http/random16722.example.org/internal/htpasswords;
|
|
include /etc/nginx/allow_ytec_ips_params;
|
|
deny all;
|
|
}
|
|
|
|
access_log /var/log/nginx/random16722.example.org/internal/access.log combined_plus;
|
|
error_log /var/log/nginx/random16722.example.org/internal/error.log;
|
|
}
|
|
|
|
server {
|
|
server_name www.random31523.example.org;
|
|
rewrite ^ http://random31523.example.org$request_uri permanent;
|
|
}
|