2025-11-15 15:46:24 +00:00
|
|
|
# Configuration vars for cmd/app
|
|
|
|
|
[app]
|
|
|
|
|
name = "Fiber starter"
|
2025-12-28 10:18:59 +00:00
|
|
|
host = "http://38.47.185.86"
|
2025-11-15 15:46:24 +00:00
|
|
|
port = ":8800"
|
2025-11-15 16:39:46 +00:00
|
|
|
domain = "https://jaecoocihampelasbdg.com/api"
|
|
|
|
|
external-port = ":8810"
|
2025-11-15 15:46:24 +00:00
|
|
|
idle-timeout = 5 # As seconds
|
2026-01-08 07:04:21 +00:00
|
|
|
print-routes = true
|
2025-11-15 15:46:24 +00:00
|
|
|
prefork = true
|
|
|
|
|
production = false
|
|
|
|
|
body-limit = 1048576000 # "100 * 1024 * 1024"
|
|
|
|
|
|
|
|
|
|
[db.postgres]
|
2025-12-28 10:17:17 +00:00
|
|
|
dsn = "postgresql://jaecoo_user:JaecooDB@2025@38.47.185.79/jaecoo_db"
|
2025-11-15 15:46:24 +00:00
|
|
|
migrate = true
|
|
|
|
|
seed = true
|
|
|
|
|
|
|
|
|
|
[logger]
|
|
|
|
|
log-dir = "debug.log"
|
|
|
|
|
time-format = "" # https://pkg.go.dev/time#pkg-constants, https://github.com/rs/zerolog/blob/master/api.go#L10
|
|
|
|
|
level = 0 # panic -> 5, fatal -> 4, error -> 3, warn -> 2, info -> 1, debug -> 0, trace -> -1
|
|
|
|
|
prettier = true
|
|
|
|
|
|
|
|
|
|
[objectstorage.miniostorage]
|
2025-12-11 09:50:37 +00:00
|
|
|
endpoint = "is3.cloudhost.id"
|
|
|
|
|
access-key-id = "YRP1RM617986USRU6NN8"
|
|
|
|
|
secret-access-key = "vfbwQDYb1m7nfzo4LVEz90BIyOWfBMZ6bfGQbqDO"
|
2026-01-02 10:09:31 +00:00
|
|
|
use-ssl = true
|
2025-11-15 16:39:46 +00:00
|
|
|
bucket-name = "jaecoo"
|
2025-11-15 15:46:24 +00:00
|
|
|
location = "us-east-1"
|
|
|
|
|
|
|
|
|
|
[middleware.compress]
|
|
|
|
|
enable = true
|
|
|
|
|
level = 1
|
|
|
|
|
|
|
|
|
|
[middleware.recover]
|
|
|
|
|
enable = true
|
|
|
|
|
|
|
|
|
|
[middleware.monitor]
|
|
|
|
|
enable = true
|
|
|
|
|
path = "/monitor"
|
|
|
|
|
|
|
|
|
|
[middleware.pprof]
|
|
|
|
|
enable = true
|
|
|
|
|
|
|
|
|
|
[middleware.cors]
|
|
|
|
|
enable = true
|
|
|
|
|
|
|
|
|
|
[middleware.limiter]
|
2026-01-07 07:55:27 +00:00
|
|
|
enable = false
|
2026-01-27 06:01:19 +00:00
|
|
|
max = 500
|
2025-11-15 15:46:24 +00:00
|
|
|
expiration_seconds = 60
|
|
|
|
|
|
|
|
|
|
[middleware.csrf]
|
|
|
|
|
enable = false
|
|
|
|
|
cookie-name = "csrf_"
|
|
|
|
|
cookie-same-site = "Lax"
|
|
|
|
|
cookie-secure = false
|
|
|
|
|
cookie-session-only = true
|
|
|
|
|
cookie-http-only = true
|
|
|
|
|
|
|
|
|
|
[middleware.audittrails]
|
|
|
|
|
enable = true
|
|
|
|
|
retention = 30
|
|
|
|
|
|
|
|
|
|
[keycloak]
|
2025-12-28 10:45:10 +00:00
|
|
|
endpoint = "http://38.47.185.86:8008"
|
2025-11-15 16:39:46 +00:00
|
|
|
realm = "medols"
|
|
|
|
|
client-id = "medols-app"
|
|
|
|
|
client-secret = "iyonEpZbAUs20quwaNFLMwRX7MUgPRlS"
|
|
|
|
|
admin-username = "developer-admin"
|
2025-11-15 15:46:24 +00:00
|
|
|
admin-password = "P@ssw0rd.1"
|
2025-11-15 16:39:46 +00:00
|
|
|
group = "jaecoo"
|
2025-11-15 15:46:24 +00:00
|
|
|
|
|
|
|
|
[smtp]
|
|
|
|
|
host = "mail.polri.go.id"
|
|
|
|
|
port = 465
|
|
|
|
|
username = "webhumas.divhumas@polri.go.id"
|
|
|
|
|
password = "8vm1nxxTsaB6"
|
|
|
|
|
from-address = "webhumas.divhumas@polri.go.id"
|
|
|
|
|
from-name = "APLIKASI WEB HUMAS DIVHUMAS POLRI"
|