2025-06-25 16:12:08 +02:00
|
|
|
# Example conf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Example TLS endpoint
|
|
|
|
|
server {
|
|
|
|
|
|
2025-06-25 18:24:01 +02:00
|
|
|
# Use this to avoid port scanners to know
|
|
|
|
|
# what you are using
|
2025-06-25 16:12:08 +02:00
|
|
|
more_clear_headers Server;
|
|
|
|
|
|
2025-06-25 18:24:01 +02:00
|
|
|
# Here put the TLS termination
|
|
|
|
|
# endpoint port
|
2025-06-25 16:12:08 +02:00
|
|
|
listen PORT ssl;
|
|
|
|
|
http2 on;
|
|
|
|
|
|
2025-06-25 18:24:01 +02:00
|
|
|
# Here put the unencrypted
|
|
|
|
|
# endpoint port
|
2025-06-25 16:12:08 +02:00
|
|
|
location / {
|
|
|
|
|
grpc_pass grpc://127.0.0.1:PORT;
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-25 18:24:01 +02:00
|
|
|
# Put relevant keys here
|
2025-06-25 16:12:08 +02:00
|
|
|
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 {
|
|
|
|
|
|
2025-06-25 18:24:01 +02:00
|
|
|
# Use this to avoid port scanners to know
|
|
|
|
|
# what you are using
|
2025-06-25 16:12:08 +02:00
|
|
|
more_clear_headers Server;
|
|
|
|
|
|
2025-06-25 18:24:01 +02:00
|
|
|
# Here put the unencrypted
|
|
|
|
|
# endpoint port
|
2025-06-25 16:12:08 +02:00
|
|
|
listen 127.0.0.1:PORT;
|
|
|
|
|
http2 on;
|
|
|
|
|
|
2025-06-25 18:24:01 +02:00
|
|
|
# Here put the original
|
|
|
|
|
# service endpoint port
|
2025-06-25 16:12:08 +02:00
|
|
|
location / {
|
|
|
|
|
grpc_pass grpcs://127.0.0.1:PORT;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|