Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion client/.docker/nginx/conf/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ server {
listen ${PORT};

# You should configure this to the domain that points to this app.
server_name ${VITE_BUDGET_BOARD_DOMAIN};
server_name _;

access_log /var/log/nginx/nginx.vhost.access.log;
error_log /var/log/nginx/nginx.vhost.error.log;
Expand All @@ -22,6 +22,7 @@ server {
# This will redirect a request from this container to our backend container.
proxy_pass http://backend_server/api/;
proxy_set_header Host ${DOLLAR}proxy_host:${DOLLAR}proxy_port;

# These are used to identify the original reverse proxied request
proxy_set_header X-Forwarded-For ${DOLLAR}proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host ${DOLLAR}http_host;
Expand Down
5 changes: 1 addition & 4 deletions compose.env
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# See https://budgetboard.net/deploy/configuration for details about each setting.

# Client configuration
BUDGET_BOARD_DOMAIN=localhost:6253
SERVER_ADDRESS=budget-board-server
PORT=6253

# Server configuration
CLIENT_ADDRESS=budget-board-client
LOG_LEVEL=Information

# Database configuration
Expand All @@ -18,7 +15,7 @@ POSTGRES_PASSWORD=superSecretPassword

# OIDC configuration (uncomment and set these values to enable OIDC authentication)
OIDC_ENABLED=false
# OIDC_ISSUER=https://my-oidc-provider.com/
# OIDC_ISSUER=https://my-oidc-provider.com
# OIDC_CLIENT_ID=myClientId
# OIDC_CLIENT_SECRET=mySuperSecretClientSecret

Expand Down
5 changes: 2 additions & 3 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
build: ./server
environment:
Logging__LogLevel__Default: ${LOG_LEVEL:-Information}
CLIENT_ADDRESS: ${CLIENT_ADDRESS:-budget-board-client}
CLIENT_ADDRESS: budget-board-client
POSTGRES_HOST: ${POSTGRES_HOST:-budget-board-db}
POSTGRES_PORT: ${POSTGRES_PORT:-5432}
POSTGRES_DATABASE: ${POSTGRES_DATABASE:-budgetboard}
Expand Down Expand Up @@ -39,8 +39,7 @@ services:
build: ./client
environment:
PORT: ${PORT:-6253}
VITE_BUDGET_BOARD_DOMAIN: ${BUDGET_BOARD_DOMAIN:-localhost:6253}
VITE_SERVER_ADDRESS: ${SERVER_ADDRESS:-budget-board-server}
VITE_SERVER_ADDRESS: budget-board-server
VITE_OIDC_ENABLED: ${OIDC_ENABLED:-false}
VITE_OIDC_PROVIDER: ${OIDC_ISSUER:-}
VITE_OIDC_CLIENT_ID: ${OIDC_CLIENT_ID:-}
Expand Down
Loading