mirror of
https://github.com/ArcticFoxes-net/Signal-TLS-Proxy
synced 2024-12-22 16:31:36 -05:00
38 lines
711 B
Nginx Configuration File
38 lines
711 B
Nginx Configuration File
|
user nginx;
|
||
|
worker_processes auto;
|
||
|
|
||
|
events {
|
||
|
worker_connections 1024;
|
||
|
}
|
||
|
|
||
|
http {
|
||
|
server {
|
||
|
listen 80;
|
||
|
|
||
|
location /.well-known/acme-challenge/ {
|
||
|
root /var/www/certbot;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
stream {
|
||
|
|
||
|
upstream relay {
|
||
|
server nginx-relay:4433;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
}
|