SSL-Sniffer/nginx/http/conf.example

52 lines
997 B
Plaintext
Raw Normal View History

# 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
more_clear_headers Server;
# Here put the TLS termination
# endpoint port
listen PORT ssl;
2025-06-25 18:24:01 +02:00
# Uncomment if http2
# http2 on;
2025-06-25 18:24:01 +02:00
# Here put the unencrypted
# endpoint port
location / {
proxy_pass http://localhost:8080;
}
2025-06-25 18:24:01 +02:00
# Put relevant keys here
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
more_clear_headers Server;
2025-06-25 18:24:01 +02:00
# Here put the unencrypted
# endpoint port
listen 127.0.0.1:8080;
2025-06-25 18:24:01 +02:00
# Uncomment if http2
# http2 on;
# Here put the original
# service endpoint port
location / {
proxy_pass https://127.0.0.1:PORT;
}
}