Ajouter nginx/kiwix-reverse-proxy
This commit is contained in:
22
nginx/kiwix-reverse-proxy
Normal file
22
nginx/kiwix-reverse-proxy
Normal file
@@ -0,0 +1,22 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name kiwix.ascoetpi.ovh;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
server_name kiwix.ascoetpi.ovh;
|
||||
ssl_certificate /etc/nginx/ssl/kiwix.ascoetpi.ovh_P256/fullchain.cer;
|
||||
ssl_certificate_key /etc/nginx/ssl/kiwix.ascoetpi.ovh_P256/private.key;
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8030;
|
||||
}
|
||||
location ~ /.well-known/acme-challenge {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real_IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr:$remote_port;
|
||||
proxy_pass http://127.0.0.1:9180;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user