mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-09 15:08:31 +01:00
feat: move listen 443 to strem to enable true ssl passthrough
This commit is contained in:
18
templates/nginx_stream_ssl_map.conf.j2
Normal file
18
templates/nginx_stream_ssl_map.conf.j2
Normal file
@@ -0,0 +1,18 @@
|
||||
map $ssl_preread_server_name $proxy_name {
|
||||
default 127.0.0.1:10443;
|
||||
{% for line in ssl_passthrough_map %}
|
||||
{{ line }}
|
||||
{% endfor %}
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
listen 443 ;
|
||||
listen [::]:443 ;
|
||||
|
||||
proxy_timeout 5m;
|
||||
proxy_responses 1;
|
||||
ssl_preread on;
|
||||
proxy_pass $proxy_name;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user