fix: Nginx SSL support for Apache proxy

This commit is contained in:
jade
2026-07-24 17:44:23 +09:00
parent c69f11e1c9
commit fa268edf7d
4 changed files with 36 additions and 25 deletions

View File

@@ -15,7 +15,10 @@ upstream tool-payment {
}
server {
listen 8281 http2;
listen 8281 ssl;
ssl_certificate /etc/nginx/ssl/nginx.crt;
ssl_certificate_key /etc/nginx/ssl/nginx.key;
location / {
proxy_pass http://gateway;
proxy_http_version 1.1;
@@ -28,7 +31,7 @@ server {
}
}
server {
listen 8282 http2;
listen 8282;
location / {
proxy_pass http://tool-sms;
proxy_http_version 1.1;
@@ -41,7 +44,7 @@ server {
}
}
server {
listen 8283 http2;
listen 8283;
location / {
proxy_pass http://tool-email;
proxy_http_version 1.1;
@@ -54,7 +57,7 @@ server {
}
}
server {
listen 8284 http2;
listen 8284;
location / {
proxy_pass http://tool-other;
proxy_http_version 1.1;
@@ -67,7 +70,7 @@ server {
}
}
server {
listen 8285 http2;
listen 8285;
location / {
proxy_pass http://tool-payment;
proxy_http_version 1.1;