Skip to content

Commit

Permalink
remove stale env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
khanzadimahdi committed Jan 11, 2025
1 parent 3951411 commit 92011ed
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 47 deletions.
29 changes: 0 additions & 29 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,12 @@ export DASHBOARD_MONGO_USERNAME = username
export DASHBOARD_MONGO_PASSWORD = password
export DASHBOARD_MONGO_MONGODB_URL = mongodb://${MONGO_USERNAME}:${MONGO_PASSWORD}@mongodb:27017

export BACKEND_NATS_URL =
export BACKEND_PRIVATE_KEY =

export BACKEND_MONGO_HOST = mongodb
export BACKEND_MONGO_PORT = 27017
export BACKEND_MONGO_SCHEME = mongodb
export BACKEND_MONGO_DATABASE_NAME = test
export BACKEND_MONGO_USERNAME = ${MONGO_USERNAME}
export BACKEND_MONGO_PASSWORD = ${MONGO_PASSWORD}

export BACKEND_MAIL_SMTP_PASSWORD =
export BACKEND_MAIL_SMTP_HOST =
export BACKEND_MAIL_SMTP_FROM =
export BACKEND_MAIL_SMTP_USERNAME =
export BACKEND_MAIL_SMTP_PORT =

export BACKEND_S3_ENDPOINT =
export BACKEND_S3_SECRET_KEY =
export BACKEND_S3_ACCESS_KEY =
export BACKEND_S3_USE_SSL = false
export BACKEND_S3_BUCKET_NAME =

export PROXY_IMAGE = ghcr.io/tarhche/proxy:latest

export APP_IMAGE = ghcr.io/tarhche/backend:latest

# username: admin
# password: admin-password (in bcrypt, a dollar-sign should be escaped by an arbitrary dollar-sign ($ --> $$))
export PORTAINER_ADMIN_PASSWORD = $$2a$$12$$4xcOa82Ni5rjgQF.v.JWi.i71OyUm3fwmfWiumgJHIAPGU.uOw3qu

export FRONTEND_IMAGE = ghcr.io/tarhche/frontend:latest
export NEXT_PUBLIC_EXTERNAL_BACKEND_BASE_URL =
export INTERNAL_BACKEND_BASE_URL = http://app
export NEXT_PUBLIC_FILES_BASE_URL =

validate:
terraform validate

Expand Down
18 changes: 0 additions & 18 deletions proxy/dynamic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,27 @@ http:
entryPoints:
- http
service: app-service
middlewares:
- add-headers

# Docker Dashboard subdomain
dockerdashboard:
rule: HostRegexp(`^dockerdashboard\..+\..+$`)
entryPoints:
- http
service: docker-dashboard-service
middlewares:
- add-headers

# MongoDB Dashboard subdomain
mongodashboard:
rule: HostRegexp(`^mongodashboard\..+\..+$`)
entryPoints:
- http
service: mongodb-dashboard-service
middlewares:
- add-headers

# Catch-all router for unmatched subdomains
catch-all:
rule: HostRegexp(`.+`)
entryPoints:
- http
service: frontend-service
middlewares:
- add-headers

services:
frontend-service:
Expand All @@ -58,13 +50,3 @@ http:
loadBalancer:
servers:
- url: "http://mongodb_dashboard:8081"

middlewares:
# Middleware to add headers to all requests
add-headers:
headers:
customRequestHeaders:
X-Real-IP: "{remote_ip}"
X-Forwarded-For: "{remote_ip}"
X-Forwarded-Proto: "{scheme}"
X-Forwarded-Host: "{host}"

0 comments on commit 92011ed

Please sign in to comment.