Dmitriy Gnatenko 3bfd8fd50b Update fiber app | il y a 3 jours | |
---|---|---|
build | il y a 2 mois | |
cmd | il y a 2 mois | |
init | il y a 2 mois | |
internal | il y a 3 jours | |
migrations | il y a 3 jours | |
web | il y a 1 an | |
.gitignore | il y a 1 an | |
Makefile | il y a 3 jours | |
docker-compose.yml | il y a 3 jours | |
go.mod | il y a 2 mois | |
go.sum | il y a 2 mois | |
readme.md | il y a 3 jours |
.env
# APP
APP_PORT=8080
# CORS
CORS_ALLOW_ORIGIN=*
CORS_ALLOW_METHODS=GET,POST,PUT,DELETE
# DB
DB_DRIVER=mysql
DB_HOST=localhost
DB_PORT=1111
DB_NAME=db
DB_USER=user
DB_PASSWORD=pass
DB_SSL_MODE=disable
DB_MAX_OPEN_CONNS=0
DB_MAX_IDLE_CONNS=0
DB_MAX_OPEN_CONN_LIFETIME=0s
DB_MAX_IDLE_CONN_LIFETIME=0s
# Cache
CACHE_DEFAULT_EXPIRATION=24h
CACHE_CLEANUP_INTERVAL=1h
# SMTP
SMTP_HOST=smtp.ru
SMTP_PORT=2525
SMTP_USER=example@user.ru
SMTP_PASSWORD=pass
# Rate limiter
LOGIN_RATE_LIMITER_MAX_REQUESTS=10
LOGIN_RATE_LIMITER_EXPIRATION=30s
# JWT
JWT_SECRET_KEY=test_secret
JWT_COOKIE=cookie
JWT_LIFETIME=1h
# Basic auth
BASIC_AUTH_USER=user
BASIC_AUTH_PASSWORD=pass
# Static
STATIC_VERSION=1
# Logger
LOGGER_STDOUT_ENABLED=true
LOGGER_STDOUT_LEVEL=info
LOGGER_STDOUT_ADD_SOURCE=false
LOGGER_EMAIL_ENABLED=true
LOGGER_EMAIL_LEVEL=error
LOGGER_EMAIL_ADD_SOURCE=true
LOGGER_EMAIL_RECIPIENT=info@dmitriygnatenko.ru
LOGGER_EMAIL_SUBJECT=Error from dmitriygnatenko.ru
/metrics