This repository has been archived on 2021-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
install-server/roots/etc/nginx/sites-available/img.drycat.fr.conf

50 lines
1.0 KiB
Plaintext

server {
listen 80;
listen [::]:80;
server_name beta.img.drycat.fr;
location /.well-known/acme-challenge {
proxy_pass http://127.0.0.1:81;
proxy_set_header Host $host;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name beta.img.drycat.fr;
index index.html index.php index.htm;
ssl_certificate /etc/nginx/ssl/certificates/beta.img.drycat.fr.cert.pem;
ssl_certificate_key /etc/nginx/ssl/certificates/beta.img.drycat.fr.key.pem;
include /etc/nginx/conf.d/ssl.conf;
include /etc/nginx/conf.d/headers.conf;
include /etc/nginx/conf.d/hsts.conf;
include /etc/nginx/conf.d/ocsp.conf;
location / {
include /etc/nginx/conf.d/proxy.conf;
client_max_body_size 50M;
proxy_pass http://127.0.0.1:9000;
}
location /.well-known/acme-challenge {
proxy_pass http://127.0.0.1:8443;
proxy_set_header Host $host;
}
}