2020-06-11 18:15:42 +01:00
|
|
|
## btcpay_tor_ssl.conf
|
|
|
|
|
|
|
|
server {
|
2022-05-17 19:33:56 +02:00
|
|
|
listen localhost:23003 ssl http2;
|
2020-06-11 18:15:42 +01:00
|
|
|
server_name _;
|
|
|
|
|
|
|
|
include /etc/nginx/snippets/ssl-params.conf;
|
2020-07-12 12:49:07 +01:00
|
|
|
include /etc/nginx/snippets/ssl-certificate-app-data-tor.conf;
|
2020-06-11 18:15:42 +01:00
|
|
|
|
2022-05-17 19:33:56 +02:00
|
|
|
include /etc/nginx/snippets/gzip-params.conf;
|
|
|
|
|
2020-06-11 18:15:42 +01:00
|
|
|
access_log /var/log/nginx/access_btcpay.log;
|
|
|
|
error_log /var/log/nginx/error_btcpay.log;
|
|
|
|
|
|
|
|
location / {
|
2020-06-26 08:10:12 +01:00
|
|
|
proxy_pass http://127.0.0.1:23000;
|
2020-06-11 18:15:42 +01:00
|
|
|
|
2022-02-14 14:32:07 +00:00
|
|
|
# For websockets
|
2020-09-14 11:54:42 +02:00
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
2022-02-14 14:32:07 +00:00
|
|
|
proxy_set_header Connection $http_connection;
|
2020-09-14 11:54:42 +02:00
|
|
|
|
2020-06-11 18:15:42 +01:00
|
|
|
include /etc/nginx/snippets/ssl-proxy-params.conf;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|