1
0
mirror of https://github.com/ArcticFoxes-net/Signal-TLS-Proxy synced 2024-11-09 05:41:33 -05:00
Signal-TLS-Proxy/data/nginx-terminate/nginx.conf
Tommy 1db17f6c12
Add IPv6 support
Signed-off-by: Tommy <contact@tommytran.io>
2023-08-16 04:02:46 -07:00

45 lines
943 B
Nginx Configuration File

user nginx;
worker_processes auto;
events {
worker_connections 1024;
}
http {
server {
listen 80;
listen [::]:80;
location /.well-known/acme-challenge/ {
# init-certificate.sh uses --standalone, so we must proxy renewals to the certbot server
proxy_pass http://certbot:80;
}
location / {
return 404;
}
}
}
stream {
upstream relay {
server nginx-relay:4433;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
proxy_pass relay;
access_log off;
error_log /dev/null;
ssl_certificate /etc/letsencrypt/active/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/active/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
}
}