diff --git a/Production-NoReverseProxy/README.md b/Production-NoReverseProxy/README.md index 1526e1c..3e67322 100644 --- a/Production-NoReverseProxy/README.md +++ b/Production-NoReverseProxy/README.md @@ -11,7 +11,10 @@ The relevant environment variables are: * `NBITCOIN_NETWORK`: the blockchain identifier used by NBitcoin (eg., `regtest`, `testnet`, `mainnet`) * `BTCPAY_HOST`: the external url used to access your server from internet. This domain name must point to this machine. +* `BTCPAY_PROTOCOL`: the protocol used to access this website from the internet (valid values: `http` and `https`, default: `https`) The port `80` is exposed. -** Note that in order to successfully use the BTCPay API, you must still access to it from an HTTPS url `https://BTCPAY_HOST/`. ** \ No newline at end of file +Note that you need to set `BTCPAY_PROTOCOL=http` if you want to do some tests locally without https. + +If you forget, you will get an error HTTP 400 when trying to register a new account on the website. \ No newline at end of file diff --git a/Production-NoReverseProxy/docker-compose.btc-clightning.yml b/Production-NoReverseProxy/docker-compose.btc-clightning.yml index 58e1fbc..d5b2a43 100644 --- a/Production-NoReverseProxy/docker-compose.btc-clightning.yml +++ b/Production-NoReverseProxy/docker-compose.btc-clightning.yml @@ -9,7 +9,7 @@ services: BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest} BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest} BTCPAY_BIND: 0.0.0.0:49392 - BTCPAY_EXTERNALURL: https://${BTCPAY_HOST}/ + BTCPAY_EXTERNALURL: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/ VIRTUAL_NETWORK: nginx-proxy VIRTUAL_PORT: 49392 VIRTUAL_HOST: ${BTCPAY_HOST} @@ -30,7 +30,7 @@ services: - "80:49392" nbxplorer: restart: always - image: nicolasdorier/nbxplorer:1.0.1.23 + image: nicolasdorier/nbxplorer:1.0.1.24 expose: - "32838" environment: diff --git a/Production-NoReverseProxy/docker-compose.btc-ltc-clightning.yml b/Production-NoReverseProxy/docker-compose.btc-ltc-clightning.yml index bd864d8..9580b58 100644 --- a/Production-NoReverseProxy/docker-compose.btc-ltc-clightning.yml +++ b/Production-NoReverseProxy/docker-compose.btc-ltc-clightning.yml @@ -9,7 +9,7 @@ services: BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest} BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest} BTCPAY_BIND: 0.0.0.0:49392 - BTCPAY_EXTERNALURL: https://${BTCPAY_HOST}/ + BTCPAY_EXTERNALURL: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/ VIRTUAL_NETWORK: nginx-proxy VIRTUAL_PORT: 49392 VIRTUAL_HOST: ${BTCPAY_HOST} @@ -34,7 +34,7 @@ services: - "80:49392" nbxplorer: restart: always - image: nicolasdorier/nbxplorer:1.0.1.23 + image: nicolasdorier/nbxplorer:1.0.1.24 expose: - "32838" environment: diff --git a/Production-NoReverseProxy/docker-compose.btc-ltc.yml b/Production-NoReverseProxy/docker-compose.btc-ltc.yml index 3ce89ca..3609aff 100644 --- a/Production-NoReverseProxy/docker-compose.btc-ltc.yml +++ b/Production-NoReverseProxy/docker-compose.btc-ltc.yml @@ -9,7 +9,7 @@ services: BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest} BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest} BTCPAY_BIND: 0.0.0.0:49392 - BTCPAY_EXTERNALURL: https://${BTCPAY_HOST}/ + BTCPAY_EXTERNALURL: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/ VIRTUAL_NETWORK: nginx-proxy VIRTUAL_PORT: 49392 VIRTUAL_HOST: ${BTCPAY_HOST} @@ -28,7 +28,7 @@ services: - "80:49392" nbxplorer: restart: always - image: nicolasdorier/nbxplorer:1.0.1.23 + image: nicolasdorier/nbxplorer:1.0.1.24 expose: - "32838" environment: diff --git a/Production-NoReverseProxy/docker-compose.btc.yml b/Production-NoReverseProxy/docker-compose.btc.yml index e4b7915..b7608a1 100644 --- a/Production-NoReverseProxy/docker-compose.btc.yml +++ b/Production-NoReverseProxy/docker-compose.btc.yml @@ -9,7 +9,7 @@ services: BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest} BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest} BTCPAY_BIND: 0.0.0.0:49392 - BTCPAY_EXTERNALURL: https://${BTCPAY_HOST}/ + BTCPAY_EXTERNALURL: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/ VIRTUAL_NETWORK: nginx-proxy VIRTUAL_PORT: 49392 VIRTUAL_HOST: ${BTCPAY_HOST} @@ -27,7 +27,7 @@ services: - "80:49392" nbxplorer: restart: always - image: nicolasdorier/nbxplorer:1.0.1.23 + image: nicolasdorier/nbxplorer:1.0.1.24 expose: - "32838" environment: diff --git a/Production-NoReverseProxy/docker-compose.ltc-clightning.yml b/Production-NoReverseProxy/docker-compose.ltc-clightning.yml index 692ff05..8999f9e 100644 --- a/Production-NoReverseProxy/docker-compose.ltc-clightning.yml +++ b/Production-NoReverseProxy/docker-compose.ltc-clightning.yml @@ -9,7 +9,7 @@ services: BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest} BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest} BTCPAY_BIND: 0.0.0.0:49392 - BTCPAY_EXTERNALURL: https://${BTCPAY_HOST}/ + BTCPAY_EXTERNALURL: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/ VIRTUAL_NETWORK: nginx-proxy VIRTUAL_PORT: 49392 VIRTUAL_HOST: ${BTCPAY_HOST} @@ -30,7 +30,7 @@ services: - "80:49392" nbxplorer: restart: always - image: nicolasdorier/nbxplorer:1.0.1.23 + image: nicolasdorier/nbxplorer:1.0.1.24 expose: - "32838" environment: diff --git a/Production-NoReverseProxy/docker-compose.ltc.yml b/Production-NoReverseProxy/docker-compose.ltc.yml index d91ca6f..a891381 100644 --- a/Production-NoReverseProxy/docker-compose.ltc.yml +++ b/Production-NoReverseProxy/docker-compose.ltc.yml @@ -9,7 +9,7 @@ services: BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest} BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest} BTCPAY_BIND: 0.0.0.0:49392 - BTCPAY_EXTERNALURL: https://${BTCPAY_HOST}/ + BTCPAY_EXTERNALURL: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/ VIRTUAL_NETWORK: nginx-proxy VIRTUAL_PORT: 49392 VIRTUAL_HOST: ${BTCPAY_HOST} @@ -27,7 +27,7 @@ services: - "80:49392" nbxplorer: restart: always - image: nicolasdorier/nbxplorer:1.0.1.23 + image: nicolasdorier/nbxplorer:1.0.1.24 expose: - "32838" environment: diff --git a/Production/docker-compose.btc-clightning.yml b/Production/docker-compose.btc-clightning.yml index dc97520..9239cde 100644 --- a/Production/docker-compose.btc-clightning.yml +++ b/Production/docker-compose.btc-clightning.yml @@ -53,7 +53,7 @@ services: BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest} BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest} BTCPAY_BIND: 0.0.0.0:49392 - BTCPAY_EXTERNALURL: https://${BTCPAY_HOST}/ + BTCPAY_EXTERNALURL: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/ VIRTUAL_NETWORK: nginx-proxy VIRTUAL_PORT: 49392 VIRTUAL_HOST: ${BTCPAY_HOST} @@ -72,7 +72,7 @@ services: - "clightning_bitcoin_datadir:/etc/clightning_bitcoin" nbxplorer: restart: always - image: nicolasdorier/nbxplorer:1.0.1.23 + image: nicolasdorier/nbxplorer:1.0.1.24 expose: - "32838" environment: diff --git a/Production/docker-compose.btc-ltc-clightning.yml b/Production/docker-compose.btc-ltc-clightning.yml index 803aea8..9fbf4aa 100644 --- a/Production/docker-compose.btc-ltc-clightning.yml +++ b/Production/docker-compose.btc-ltc-clightning.yml @@ -53,7 +53,7 @@ services: BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest} BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest} BTCPAY_BIND: 0.0.0.0:49392 - BTCPAY_EXTERNALURL: https://${BTCPAY_HOST}/ + BTCPAY_EXTERNALURL: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/ VIRTUAL_NETWORK: nginx-proxy VIRTUAL_PORT: 49392 VIRTUAL_HOST: ${BTCPAY_HOST} @@ -76,7 +76,7 @@ services: - "clightning_bitcoin_datadir:/etc/clightning_bitcoin" nbxplorer: restart: always - image: nicolasdorier/nbxplorer:1.0.1.23 + image: nicolasdorier/nbxplorer:1.0.1.24 expose: - "32838" environment: diff --git a/Production/docker-compose.btc-ltc.yml b/Production/docker-compose.btc-ltc.yml index b27bc7e..9f0551f 100644 --- a/Production/docker-compose.btc-ltc.yml +++ b/Production/docker-compose.btc-ltc.yml @@ -53,7 +53,7 @@ services: BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest} BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest} BTCPAY_BIND: 0.0.0.0:49392 - BTCPAY_EXTERNALURL: https://${BTCPAY_HOST}/ + BTCPAY_EXTERNALURL: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/ VIRTUAL_NETWORK: nginx-proxy VIRTUAL_PORT: 49392 VIRTUAL_HOST: ${BTCPAY_HOST} @@ -70,7 +70,7 @@ services: - "nbxplorer_datadir:/root/.nbxplorer" nbxplorer: restart: always - image: nicolasdorier/nbxplorer:1.0.1.23 + image: nicolasdorier/nbxplorer:1.0.1.24 expose: - "32838" environment: diff --git a/Production/docker-compose.btc.yml b/Production/docker-compose.btc.yml index b34a112..d432e67 100644 --- a/Production/docker-compose.btc.yml +++ b/Production/docker-compose.btc.yml @@ -53,7 +53,7 @@ services: BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest} BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest} BTCPAY_BIND: 0.0.0.0:49392 - BTCPAY_EXTERNALURL: https://${BTCPAY_HOST}/ + BTCPAY_EXTERNALURL: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/ VIRTUAL_NETWORK: nginx-proxy VIRTUAL_PORT: 49392 VIRTUAL_HOST: ${BTCPAY_HOST} @@ -69,7 +69,7 @@ services: - "nbxplorer_datadir:/root/.nbxplorer" nbxplorer: restart: always - image: nicolasdorier/nbxplorer:1.0.1.23 + image: nicolasdorier/nbxplorer:1.0.1.24 expose: - "32838" environment: diff --git a/Production/docker-compose.ltc-clightning.yml b/Production/docker-compose.ltc-clightning.yml index c6b3bab..d65fbcb 100644 --- a/Production/docker-compose.ltc-clightning.yml +++ b/Production/docker-compose.ltc-clightning.yml @@ -53,7 +53,7 @@ services: BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest} BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest} BTCPAY_BIND: 0.0.0.0:49392 - BTCPAY_EXTERNALURL: https://${BTCPAY_HOST}/ + BTCPAY_EXTERNALURL: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/ VIRTUAL_NETWORK: nginx-proxy VIRTUAL_PORT: 49392 VIRTUAL_HOST: ${BTCPAY_HOST} @@ -72,7 +72,7 @@ services: - "clightning_litecoin_datadir:/etc/clightning_litecoin" nbxplorer: restart: always - image: nicolasdorier/nbxplorer:1.0.1.23 + image: nicolasdorier/nbxplorer:1.0.1.24 expose: - "32838" environment: diff --git a/Production/docker-compose.ltc.yml b/Production/docker-compose.ltc.yml index 46be859..5b1f25f 100644 --- a/Production/docker-compose.ltc.yml +++ b/Production/docker-compose.ltc.yml @@ -53,7 +53,7 @@ services: BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest} BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest} BTCPAY_BIND: 0.0.0.0:49392 - BTCPAY_EXTERNALURL: https://${BTCPAY_HOST}/ + BTCPAY_EXTERNALURL: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/ VIRTUAL_NETWORK: nginx-proxy VIRTUAL_PORT: 49392 VIRTUAL_HOST: ${BTCPAY_HOST} @@ -69,7 +69,7 @@ services: - "nbxplorer_datadir:/root/.nbxplorer" nbxplorer: restart: always - image: nicolasdorier/nbxplorer:1.0.1.23 + image: nicolasdorier/nbxplorer:1.0.1.24 expose: - "32838" environment: diff --git a/docker-compose-generator/docker-fragments/btcpayserver.yml b/docker-compose-generator/docker-fragments/btcpayserver.yml index a1ba90a..012c03d 100644 --- a/docker-compose-generator/docker-fragments/btcpayserver.yml +++ b/docker-compose-generator/docker-fragments/btcpayserver.yml @@ -12,7 +12,7 @@ services: BTCPAY_POSTGRES: User ID=postgres;Host=postgres;Port=5432;Database=btcpayserver${NBITCOIN_NETWORK:-regtest} BTCPAY_NETWORK: ${NBITCOIN_NETWORK:-regtest} BTCPAY_BIND: 0.0.0.0:49392 - BTCPAY_EXTERNALURL: https://${BTCPAY_HOST}/ + BTCPAY_EXTERNALURL: ${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/ # NGINX settings VIRTUAL_NETWORK: nginx-proxy @@ -32,7 +32,7 @@ services: nbxplorer: restart: always - image: nicolasdorier/nbxplorer:1.0.1.23 + image: nicolasdorier/nbxplorer:1.0.1.24 expose: - "32838" environment: