add reverse based on xataz/reverse (temporary)

This commit is contained in:
root
2017-09-18 16:50:02 +02:00
parent f1d9053bb8
commit fed0136973
19 changed files with 759 additions and 0 deletions

View File

@ -0,0 +1,6 @@
server {
listen 8080;
server_name <frontend_domain>;
include /nginx/conf.d/headers.conf;
include /nginx/path.d/<frontend_domain>/*.conf;
}

View File

@ -0,0 +1,27 @@
server {
listen 8080;
server_name <frontend_domain>;
rewrite ^ https://<frontend_domain>:443$request_uri? permanent;
}
server {
listen 8443 ssl http2;
server_name <frontend_domain>;
index index.html index.php index.htm;
ssl_certificate /nginx/ssl/certificates/<frontend_domain>.crt;
ssl_certificate_key /nginx/ssl/certificates/<frontend_domain>.key;
ssl_trusted_certificate /nginx/ssl/certificates/<frontend_domain>.chain.pem;
include /nginx/conf.d/ssl.conf;
include /nginx/conf.d/headers.conf;
include /nginx/path.d/<frontend_domain>/*.conf;
location ~ /\.well-known/acme-challenge {
root /nginx/www/<frontend_domain>;
allow all;
}
}