|
@@ -1,35 +1,54 @@
|
|
|
server:
|
|
|
- host: "localhost"
|
|
|
- port: 8080
|
|
|
- environment: "development"
|
|
|
- timeout: 30
|
|
|
+ listening_port: 8443
|
|
|
tls:
|
|
|
enabled: false
|
|
|
- cert_file: ""
|
|
|
- key_file: ""
|
|
|
+ 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:
|
|
|
- host: "localhost"
|
|
|
- port: 5432
|
|
|
- name: "myapp"
|
|
|
- user: "postgres"
|
|
|
- password: ""
|
|
|
- ssl_mode: "disable"
|
|
|
- max_connections: 10
|
|
|
+ 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"
|
|
|
|
|
|
-logger:
|
|
|
- level: "debug"
|
|
|
- format: "json"
|
|
|
- output: "stdout"
|
|
|
+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"
|
|
|
|
|
|
-cache:
|
|
|
- enabled: true
|
|
|
- type: "memory"
|
|
|
- ttl: 3600
|
|
|
+jwt:
|
|
|
+ jwt_secret: "your-super-secret-jwt-key-change-this-in-production"
|
|
|
|
|
|
-api:
|
|
|
- timeout: 10
|
|
|
- retry:
|
|
|
- enabled: true
|
|
|
- max_attempts: 3
|
|
|
- delay: 1
|
|
|
+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"
|