-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
31 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -121,7 +121,7 @@ export const config: Config = { | |
email: { | ||
main: '[email protected]', | ||
}, | ||
appName: 'Hexabot.io', | ||
appName: 'Hexabot.ai', | ||
apiUrl: 'http://localhost:4000', | ||
appUrl: 'http://localhost:8081', | ||
geocoder: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
# API & Common | ||
NODE_ENV=dev | ||
APP_DOMAIN=localhost | ||
SSL_EMAIL=[email protected] | ||
API_PORT=4000 | ||
APP_MONGO_EXPRESS_PORT=9000 | ||
APP_SMTP_4_DEV_PORT=9002 | ||
APP_SCRIPT_COMPODOC_PORT=9003 | ||
API_ORIGIN=http://localhost:4000 | ||
FRONTEND_ORIGIN=http://localhost:8080,http://localhost:8081,http://localhost:5173,http://localhost,http://localhost/*,* | ||
MONGO_USER=dev_only | ||
MONGO_PASSWORD=dev_only | ||
MONGO_URI=mongodb://dev_only:dev_only@mongo:27017/ | ||
MONGO_DB=hexabot | ||
NEXT_PUBLIC_API_ORIGIN=http://${APP_DOMAIN}:${API_PORT} | ||
API_ORIGIN=http://${APP_DOMAIN}:${API_PORT} | ||
FRONTEND_ORIGIN=http://${APP_DOMAIN}:8080,http://${APP_DOMAIN}:8081,http://${APP_DOMAIN}:5173,http://${APP_DOMAIN},http://${APP_DOMAIN}/*,* | ||
JWT_SECRET=dev_only | ||
JWT_EXPIRES_IN=60 | ||
SALT_LENGTH=12 | ||
|
@@ -25,12 +22,22 @@ PASSWORD_RESET_EXPIRES_IN=1h | |
CONFIRM_ACCOUNT_SECRET=dev_only | ||
CONFIRM_ACCOUNT_EXPIRES_IN=1h | ||
FRONTEND_DOCKER_IMAGE=linuxtry | ||
I18N_TRANSLATION_FILENAME=messages | ||
|
||
# Mongo configs | ||
APP_MONGO_EXPRESS_PORT=9000 | ||
MONGO_USER=dev_only | ||
MONGO_PASSWORD=dev_only | ||
MONGO_URI=mongodb://dev_only:dev_only@mongo:27017/ | ||
MONGO_DB=hexabot | ||
|
||
# SMTP Config for local dev env | ||
APP_SMTP_4_DEV_PORT=9002 | ||
EMAIL_SMTP_HOST=smtp4dev | ||
EMAIL_SMTP_PORT=25 | ||
EMAIL_SMTP_SECURE=false | ||
EMAIL_SMTP_USER=dev_only | ||
EMAIL_SMTP_PASS=dev_only | ||
I18N_TRANSLATION_FILENAME=messages | ||
|
||
# NLU Server | ||
AUTH_TOKEN=token123 | ||
|
@@ -42,11 +49,11 @@ NLP_PORT=5000 | |
|
||
# Frontend (Next.js) | ||
APP_FRONTEND_PORT=8080 | ||
NEXT_PUBLIC_API_ORIGIN=http://localhost:4000/ | ||
NEXT_PUBLIC_API_ORIGIN=http://${APP_DOMAIN}:4000/ | ||
NEXT_PUBLIC_SSO_ENABLED=false | ||
|
||
# Widget | ||
APP_WIDGET_PORT=5173 | ||
REACT_APP_WIDGET_API_URL=http://localhost:4000 | ||
REACT_APP_WIDGET_API_URL=http://${APP_DOMAIN}:4000 | ||
REACT_APP_WIDGET_CHANNEL=offline | ||
REACT_APP_WIDGET_TOKEN=token123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,11 @@ if ! [ -x "$(command -v docker compose)" ]; then | |
exit 1 | ||
fi | ||
|
||
domains=(demo.hexabot.io) | ||
domains=(${APP_DOMAIN:-example.hexabot.ai}) | ||
rsa_key_size=4096 | ||
data_path="./nginx/certbot" | ||
email="[email protected]" # Adding a valid address is strongly recommended | ||
staging=0 # Set to 1 if you're testing your setup to avoid hitting request limits | ||
email="${SSL_EMAIL:-hello@hexabot.ai}" # Adding a valid address is strongly recommended | ||
staging=0 # Set to 1 if you're testing your setup to avoid hitting request limits | ||
|
||
if [ -d "$data_path" ]; then | ||
read -p "Existing data found for $domains. Continue and replace existing certificate? (y/N) " decision | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
docker/nginx/unsecure/default.conf → docker/nginx/unsecure/default.conf.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.