Commit 9c9a1005 authored by Valentin Samir's avatar Valentin Samir

[config/proxy] Template d'un site du proxy https.

Je le mets ici parce que le plugins bcfg2 ne supporte pas d'avoir des lignes
qui commencent par n espaces suivis de %s. En effet, il y a une syntax
particulière qui essaye de convertir "%truc muche"  en "truc = muche".
parent 41491beb
......@@ -23,3 +23,27 @@ max_upload = {
u"owncloud.crans.org" : "10G",
}
site_template = """server {
server_name %(serveur)s;
include "snippets/proxy-common.conf";
%(max_body_size)s
}
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;
%(max_body_size)s
location / {
proxy_redirect off;
proxy_pass http://%(proxy_pass)s;
proxy_set_header Host %(serveur)s;
proxy_set_header P-Real-IP $remote_addr;
}
}
"""
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