diff --git a/.idea/.gitignore b/.idea/.gitignore index 2df4ef1..defec2a 100644 --- a/.idea/.gitignore +++ b/.idea/.gitignore @@ -11,3 +11,5 @@ # Datasource local storage ignored files /dataSources/ /dataSources.local.xml +/AndroidProjectSystem.xml +/sonarlint.xml diff --git a/plantit/docker-compose.yaml b/plantit/docker-compose.yaml index 7e53b4d..a38ca97 100644 --- a/plantit/docker-compose.yaml +++ b/plantit/docker-compose.yaml @@ -19,8 +19,8 @@ services: restart: always env_file: server.env volumes: - - "/home/soenke/docker-data/plantit/db:/var/lib/mysql" + - "./db:/var/lib/mysql" cache: image: redis:7.2.1 - restart: always \ No newline at end of file + restart: always diff --git a/plantit/server.env b/plantit/server.env index 4e35a39..6e37b0d 100644 --- a/plantit/server.env +++ b/plantit/server.env @@ -3,26 +3,36 @@ # MYSQL_HOST=db MYSQL_PORT=3306 -MYSQL_USERNAME=plantit -MYSQL_PSW=plantit123 +MYSQL_USERNAME=root +MYSQL_PSW=root MYSQL_DATABASE=bootdb -MYSQL_ROOT_PASSWORD=plantit123 +MYSQL_ROOT_PASSWORD=root # # JWT # -JWT_SECRET=putTheSecretHere +JWT_SECRET=8ec571c0625722935e3940c35e56af08209eb6591b26e4cd73bd4d0dbb261904457941ba52c857edca7374b86749b389b9d37a081345b6dae13dd10d0f0b151b4919c076051845206b57b23ec62769951a0a5286d630fa0b6234cd6799dff44b70b961308796aefbe701de026fee1a718a4604e4722c6d27725c9b9466e428ac19a8ba052781589cf7142a045900839e12d1de5a0308c22188810a5ea97c2bbb3ff87f1178dc377fb997cefb4aaf68689d4c6bec2f5f67c881f66dfb16540ff5a8259d90cba9d2a53df46c4a9ad57c1cc7cc9cc13f357f679b7b8263dc3282eca13fba70e014a0677abf1eaf972886f87f97ee7e31ef8b002971a38c6e4ce7d1 JWT_EXP=1 # # Server config # -USERS_LIMIT=-1 -UPLOAD_DIR=/upload-dir -API_PORT=8632 +USERS_LIMIT=-1 # less then 0 means no limit +UPLOAD_DIR=/upload-dir # path to the directory used to store uploaded images, if on docker deployment leave as it is and change the volume binding in the docker-compose file if needed +API_PORT=8080 TREFLE_KEY= -LOG_LEVEL=DEBUG -ALLOWED_ORIGINS=* +ALLOWED_ORIGINS=* # CORS allowed origins (comma separated list) +LOG_LEVEL=DEBUG # could be: DEBUG, INFO, WARN, ERROR +UPDATE_EXISTING=false # update missing fields using Trefle service, useful on system version update if new fields are introduced +CONTACT_MAIL=soenke@domroese.eu # address used as "contact" for template email +REMINDER_NOTIFY_CHECK=0 30 7 * * * # 6-values crontab expression to set the check time for reminders + + +# +# SSL +# +SSL_ENABLED=false +CERTIFICATE_PATH=/certificates/ # path to files to use for ssl. If on docker deployment leave as it is and change the volume binding in the docker-compose file if needed # # Cache @@ -32,7 +42,11 @@ CACHE_HOST=cache CACHE_PORT=6379 # -# SSL +# SMTP # -SSL_ENABLED=false -CERTIFICATE_PATH=/certificates/ \ No newline at end of file +SMTP_HOST= +SMTP_PORT= +SMTP_EMAIL= +SMTP_PASSWORD= +SMTP_AUTH= +SMTP_START_TTL= \ No newline at end of file