Skip to content

Commit

Permalink
Change docker acme configuration to use only one hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
allgood committed Oct 19, 2024
1 parent a199fec commit ab1be9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
13 changes: 5 additions & 8 deletions .env-backend-acme
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
BACKEND_HOST=api.ticketz.exemplo.com.br
FRONTEND_HOST=ticketz.exemplo.com.br
[email protected]
TZ=America/Sao_Paulo

# Normalmente não é necessário alterar estes valores

BACKEND_PATH=/backend

RECAPTCHA_SECRET_KEY=

BACKEND_URL=https://${BACKEND_HOST}
BACKEND_URL=https://${FRONTEND_HOST}${BACKEND_PATH}
FRONTEND_URL=https://${FRONTEND_HOST}

DB_DIALECT=postgres
Expand All @@ -29,10 +32,4 @@ FACEBOOK_APP_SECRET=

VERIFY_TOKEN=ticketz

# Normalmente não é necessário alterar estes valores
VIRTUAL_HOST=${BACKEND_HOST}
VIRTUAL_PORT=3000
LETSENCRYPT_HOST=${BACKEND_HOST}
LETSENCRYPT_EMAIL=${EMAIL_ADDRESS}

SOCKET_ADMIN=true
6 changes: 4 additions & 2 deletions .env-frontend-acme
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FRONTEND_HOST=ticketz.exemplo.com.br
[email protected]

BACKEND_HOST=api.ticketz.exemplo.com.br
### Normalmente não é necessário alterar estes valores

BACKEND_HOST=${FRONTEND_HOST}
BACKEND_PATH=/backend

RECAPTCHA_SITE_KEY=

### Normalmente não é necessário alterar estes valores
VIRTUAL_HOST=${FRONTEND_HOST}
VIRTUAL_PORT=80
LETSENCRYPT_HOST=${FRONTEND_HOST}
Expand Down

0 comments on commit ab1be9b

Please sign in to comment.