initial commit
This commit is contained in:
commit
e7987e88a7
70 changed files with 13661 additions and 0 deletions
68
config.yaml
Normal file
68
config.yaml
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue