Changed composition to make it easier to user

This commit is contained in:
Christian Risi
2025-06-25 16:12:08 +02:00
parent cc7f8bcba8
commit fa8d967748
9 changed files with 86 additions and 218 deletions

View File

@@ -0,0 +1,37 @@
# Example conf
# Example TLS endpoint
server {
listen PORT ssl;
more_clear_headers Server;
location / {
proxy_pass http://localhost:8080;
}
ssl_certificate /services-keys/Example/cert.pem;
ssl_certificate_key /services-keys/Example/key.pem;
ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3;
}
# Example Termination endpoint
server {
more_clear_headers Server;
listen 127.0.0.1:8080;
# Here put the service you need
location / {
proxy_pass https://127.0.0.1:PORT;
}
}

View File

@@ -1,23 +0,0 @@
server {
listen *:3443 ssl;
ssl_certificate /services-keys/ExpressTLS/cert.pem;
ssl_certificate_key /services-keys/ExpressTLS/key.pem;
ssl_protocols TLSv1.3;
location / {
proxy_pass http://localhost:3080/;
}
}
server {
listen 127.0.0.1:3080;
location / {
proxy_pass https://express-tls:8443/;
}
}