Files
yunohost/conf/nginx/tls_passthrough.conf
machine-a-tsoins edb4c397df
Some checks failed
Check for new n releases / updater (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
🍽 Fork YunoHost — snapshot mangé par la machine à tsoins
Upstream: https://github.com/YunoHost/yunohost @ 3a5f8bac8301c450897b96cbd43a4c7d3ba750fb
But (José) : transformer tout le code en bions + ploxions du xerboxion.
La carte de digestion vit au labo : /yunohost-digest.json
2026-07-03 17:20:06 +00:00

29 lines
732 B
Plaintext

{% set domain_ip_map = tls_passthrough_list.split(',') %}
stream {
map $ssl_preread_server_name $name {
{% for domain_ip in domain_ip_map %}
{{ domain_ip.split(";")[0] }} {{ domain_ip.split(";")[0].replace('.', '_') }};
{%- endfor %}
default https_default_backend;
}
{%- for domain_ip in domain_ip_map %}
upstream {{ domain_ip.split(";")[0].replace('.', '_') }} {
server {{ domain_ip.split(";")[1] }}:{{ domain_ip.split(";")[2] }};
}
{%- endfor %}
upstream https_default_backend {
server 127.0.0.1:444;
}
server {
listen 443;
listen [::]:443;
proxy_pass $name;
proxy_protocol on;
ssl_preread on;
}
}