mirror of
https://github.com/aljazceru/btcpayserver-docker.git
synced 2025-12-18 14:44:27 +01:00
Add REVERSEPROXY_DEFAULT_HOST
This commit is contained in:
@@ -117,6 +117,7 @@ You can read [the article](https://medium.com/@BtcpayServer/hosting-btcpay-serve
|
|||||||
`btcpay-setup.sh` will use the following environment variables:
|
`btcpay-setup.sh` will use the following environment variables:
|
||||||
|
|
||||||
* `BTCPAY_HOST`: The hostname of your website (eg. `btcpay.example.com`)
|
* `BTCPAY_HOST`: The hostname of your website (eg. `btcpay.example.com`)
|
||||||
|
* `REVERSEPROXY_DEFAULT_HOST`: Optional, if using a reverse proxy nginx, specify which website should be presented if the server is accessed by its IP.
|
||||||
* `NBITCOIN_NETWORK`: The type of network to use (eg. `mainnet`, `testnet`, or `regtest`. Default: `mainnet`)
|
* `NBITCOIN_NETWORK`: The type of network to use (eg. `mainnet`, `testnet`, or `regtest`. Default: `mainnet`)
|
||||||
* `LIGHTNING_ALIAS`: An alias for your lightning network node, if used
|
* `LIGHTNING_ALIAS`: An alias for your lightning network node, if used
|
||||||
* `BTCPAYGEN_CRYPTO1`: First supported crypto currency (eg. `btc`, `ltc`. Default: `btc`)
|
* `BTCPAYGEN_CRYPTO1`: First supported crypto currency (eg. `btc`, `ltc`. Default: `btc`)
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ This will be used to properly setup HTTPS via let's encrypt.
|
|||||||
|
|
||||||
Environment variables:
|
Environment variables:
|
||||||
BTCPAY_HOST: The hostname of your website (eg. btcpay.example.com)
|
BTCPAY_HOST: The hostname of your website (eg. btcpay.example.com)
|
||||||
|
REVERSEPROXY_DEFAULT_HOST: Optional, if using a reverse proxy nginx, specify which website should be presented if the server is accessed by its IP.
|
||||||
LETSENCRYPT_EMAIL: A mail will be sent to this address if certificate expires and fail to renew automatically (eg. me@example.com)
|
LETSENCRYPT_EMAIL: A mail will be sent to this address if certificate expires and fail to renew automatically (eg. me@example.com)
|
||||||
NBITCOIN_NETWORK: The type of network to use (eg. mainnet, testnet or regtest. Default: mainnet)
|
NBITCOIN_NETWORK: The type of network to use (eg. mainnet, testnet or regtest. Default: mainnet)
|
||||||
LIGHTNING_ALIAS: An alias for your lightning network node if used
|
LIGHTNING_ALIAS: An alias for your lightning network node if used
|
||||||
|
|||||||
@@ -17,6 +17,8 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: btcpayserver/docker-gen:0.7.5
|
image: btcpayserver/docker-gen:0.7.5
|
||||||
container_name: nginx-gen
|
container_name: nginx-gen
|
||||||
|
environment:
|
||||||
|
DEFAULT_HOST: ${REVERSEPROXY_DEFAULT_HOST:-none}
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/run/docker.sock:/tmp/docker.sock:ro"
|
- "/var/run/docker.sock:/tmp/docker.sock:ro"
|
||||||
- "./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro"
|
- "./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro"
|
||||||
|
|||||||
Reference in New Issue
Block a user