mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:05:31 +02:00
33 lines
800 B
Plaintext
33 lines
800 B
Plaintext
server {
|
|
listen 80;
|
|
server_name random9761.example.org;
|
|
|
|
|
|
location ~ /static/(.*)$ {
|
|
alias /srv/http/random14537/static_collected/$1;
|
|
expires 7d;
|
|
}
|
|
|
|
location ~ /media/(.*)$ {
|
|
alias /srv/http/random14537/dynamic/public/$1;
|
|
expires 7d;
|
|
include upload_folder_security_params;
|
|
}
|
|
|
|
|
|
location / {
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header Host $host;
|
|
proxy_pass http://127.0.0.1:81;
|
|
proxy_connect_timeout 120;
|
|
proxy_read_timeout 120;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
|
|
access_log /var/log/nginx/random14537/access.log combined_plus;
|
|
}
|