Commit 34bca8a3 authored by Valentin Samir's avatar Valentin Samir

[config/proxy] Template de conf pour la redirection des zones alias vers crans.org

parent 4c8d3b3c
......@@ -27,7 +27,6 @@ max_upload = {
site_template = """server {
server_name %(serveur)s;
include "snippets/proxy-common.conf";
%(max_body_size)s
}
server {
......@@ -47,3 +46,23 @@ server {
}
"""
site_redirect_template = """server {
server_name %(serveur)s;
include "snippets/proxy-common.conf";
}
server {
include "snippets/proxy-common-ssl.conf";
server_name %(serveur)s;
ssl_certificate /etc/letsencrypt/live/%(cert_name)s/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/%(cert_name)s/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/%(cert_name)s/chain.pem;
location / {
rewrite ^(.*)$ https://%(redirect)s$1;
}
}
"""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment