aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorforest <forest.n.johnson@gmail.com>2021-01-13 17:52:25 -0600
committerforest <forest.n.johnson@gmail.com>2021-01-13 17:52:34 -0600
commit0e18e8c809290728fa1390e9a0787b283a75ebe3 (patch)
treee74d5f83e1b864785b8e81ccc167f61cb65a116d
parent6974780ce5ca55f0783365eb0f4a37c48cea9416 (diff)
downloadops-handbook-0e18e8c809290728fa1390e9a0787b283a75ebe3.tar.gz
ops-handbook-0e18e8c809290728fa1390e9a0787b283a75ebe3.tar.bz2
copy nginx config from docs
https://docs.btcpayserver.org/FAQ/FAQ-Deployment/#cause-3-btcpay-is-expecting-you-to-access-this-website-from
-rw-r--r--ansible/files/magnataur.cyberia.club/nginx/btcpay2.cyberia.club.conf14
1 files changed, 13 insertions, 1 deletions
diff --git a/ansible/files/magnataur.cyberia.club/nginx/btcpay2.cyberia.club.conf b/ansible/files/magnataur.cyberia.club/nginx/btcpay2.cyberia.club.conf
index e645c61..54d8987 100644
--- a/ansible/files/magnataur.cyberia.club/nginx/btcpay2.cyberia.club.conf
+++ b/ansible/files/magnataur.cyberia.club/nginx/btcpay2.cyberia.club.conf
@@ -17,8 +17,20 @@ server {
ssl_certificate_key /etc/ssl/uacme/private/btcpay2.cyberia.club/key.pem;
location / {
+
+ # https://docs.btcpayserver.org/FAQ/FAQ-Deployment/#cause-3-btcpay-is-expecting-you-to-access-this-website-from
+
+ map $http_x_forwarded_proto $proxy_x_forwarded_proto {
+ default $http_x_forwarded_proto;
+ '' $scheme;
+ }
+ proxy_set_header Host $http_host;
+ proxy_set_header X-Forwarded-Proto $proxy_x_forwarded_proto;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
+
+
proxy_pass http://localhost:3000;
}
}
+
+