|
@@ -1,54 +0,0 @@
|
|
|
-server:
|
|
|
- listening_port: 8443
|
|
|
- tls:
|
|
|
- enabled: false
|
|
|
- cert: "/path/to/cert.pem"
|
|
|
- key: "/path/to/key.pem"
|
|
|
- opts:
|
|
|
- - "Access-Control-Allow-Origin: *"
|
|
|
- - "Access-Control-Allow-Methods: GET, POST, PUT, DELETE"
|
|
|
- - "Access-Control-Allow-Headers: Content-Type, Authorization"
|
|
|
-
|
|
|
-database:
|
|
|
- path: "/app/data/app.db"
|
|
|
- log_mode: true
|
|
|
- max_open_conns: 10
|
|
|
- max_idle_conns: 5
|
|
|
- conn_max_lifetime: 300
|
|
|
- pragma:
|
|
|
- - "journal_mode=WAL"
|
|
|
- - "busy_timeout=5000"
|
|
|
- - "synchronous=NORMAL"
|
|
|
-
|
|
|
-log:
|
|
|
- level: "info" # trace, debug, info, warn, error, fatal, panic
|
|
|
- no_color: false
|
|
|
- force_colors: true
|
|
|
- in_json: false
|
|
|
- filter_components:
|
|
|
- - "api"
|
|
|
- - "db"
|
|
|
- - "auth"
|
|
|
- - "email"
|
|
|
-
|
|
|
-jwt:
|
|
|
- jwt_secret: "your-super-secret-jwt-key-change-this-in-production"
|
|
|
-
|
|
|
-smtp:
|
|
|
- host: "smtp.gmail.com"
|
|
|
- port: 587
|
|
|
- user: "your-email@gmail.com"
|
|
|
- pass: "your-app-specific-password"
|
|
|
-
|
|
|
-oauth2:
|
|
|
- client_id: "your-oauth-client-id"
|
|
|
- client_secret: "your-oauth-client-secret"
|
|
|
- redirect_url: "http://localhost:8443/oauth/callback"
|
|
|
- auth_url: "https://accounts.google.com/o/oauth2/auth"
|
|
|
- token_url: "https://oauth2.googleapis.com/token"
|
|
|
- user_info_url: "https://www.googleapis.com/oauth2/v3/userinfo"
|
|
|
-
|
|
|
-hook:
|
|
|
- base_url: "https://api.yourwebhookservice.com"
|
|
|
- domain: "yourdomain.com"
|
|
|
- secret_key: "your-webhook-secret-key"
|