Migrate discourse proxy to openresty

This commit is contained in:
Râu Cao
2023-07-26 13:40:03 +02:00
parent 87657db8a7
commit 543b482adb
7 changed files with 35 additions and 48 deletions

View File

@@ -8,7 +8,7 @@ upstream _discourse {
<% if File.exist?(@ssl_cert) && File.exist?(@ssl_key) -%>
server {
server_name <%= @server_name %>;
listen 443 ssl http2;
listen <%= "#{node['openresty']['listen_ip']}:" if node['openresty']['listen_ip'] %>443 ssl http2;
listen [::]:443 ssl http2;
ssl_certificate <%= @ssl_cert %>;