68 lines
1.1 KiB
YAML
68 lines
1.1 KiB
YAML
|
|
server:
|
||
|
|
host: "0.0.0.0"
|
||
|
|
port: 8081
|
||
|
|
mode: "debug"
|
||
|
|
read_timeout: 10
|
||
|
|
write_timeout: 10
|
||
|
|
idle_timeout: 60
|
||
|
|
|
||
|
|
database:
|
||
|
|
host: "localhost"
|
||
|
|
port: 5432
|
||
|
|
user: "postgres"
|
||
|
|
password: "postgres"
|
||
|
|
name: "go_first"
|
||
|
|
ssl_mode: "disable"
|
||
|
|
max_open_conns: 25
|
||
|
|
max_idle_conns: 5
|
||
|
|
conn_max_lifetime: 300
|
||
|
|
|
||
|
|
redis:
|
||
|
|
host: "localhost"
|
||
|
|
port: 6379
|
||
|
|
password: ""
|
||
|
|
db: 0
|
||
|
|
|
||
|
|
jwt:
|
||
|
|
secret: "your-super-secret-jwt-key-change-in-production"
|
||
|
|
expires_in: 24
|
||
|
|
refresh_expires_in: 168
|
||
|
|
|
||
|
|
cors:
|
||
|
|
allowed_origins:
|
||
|
|
- "https://www.urpi.be"
|
||
|
|
- "https://urpi.be"
|
||
|
|
- "http://localhost:3000"
|
||
|
|
- "http://localhost:5173"
|
||
|
|
allowed_methods:
|
||
|
|
- "GET"
|
||
|
|
- "POST"
|
||
|
|
- "PUT"
|
||
|
|
- "PATCH"
|
||
|
|
- "DELETE"
|
||
|
|
- "OPTIONS"
|
||
|
|
allowed_headers:
|
||
|
|
- "Origin"
|
||
|
|
- "Content-Type"
|
||
|
|
- "Accept"
|
||
|
|
- "Authorization"
|
||
|
|
- "X-Requested-With"
|
||
|
|
allow_credentials: true
|
||
|
|
max_age: 86400
|
||
|
|
|
||
|
|
logging:
|
||
|
|
level: "debug"
|
||
|
|
format: "console"
|
||
|
|
output: "stdout"
|
||
|
|
|
||
|
|
email:
|
||
|
|
smtp_host: "smtp.gmail.com"
|
||
|
|
smtp_port: 587
|
||
|
|
username: ""
|
||
|
|
password: ""
|
||
|
|
from_address: "noreply@urpi.be"
|
||
|
|
from_name: "URPI"
|
||
|
|
|
||
|
|
frontend:
|
||
|
|
build_path: "./web/dist"
|
||
|
|
spa_fallback: true
|