2024-03-05 19:15:53 +00:00
|
|
|
# Configuration vars for cmd/app
|
|
|
|
|
[app]
|
|
|
|
|
name = "Fiber starter"
|
2025-12-28 10:45:48 +00:00
|
|
|
host = "http://38.47.185.86"
|
2024-03-05 19:15:53 +00:00
|
|
|
port = ":8800"
|
2025-07-03 06:34:05 +00:00
|
|
|
domain = "https://dev.mikulnews.com/api"
|
2025-12-30 04:46:25 +00:00
|
|
|
external-port = ":8804"
|
2024-03-05 19:15:53 +00:00
|
|
|
idle-timeout = 5 # As seconds
|
|
|
|
|
print-routes = false
|
2025-12-30 04:46:25 +00:00
|
|
|
prefork = false
|
2024-03-05 19:15:53 +00:00
|
|
|
production = false
|
2025-01-14 19:16:25 +00:00
|
|
|
body-limit = 1048576000 # "100 * 1024 * 1024"
|
2024-03-05 19:15:53 +00:00
|
|
|
|
|
|
|
|
[db.postgres]
|
2025-12-28 10:45:48 +00:00
|
|
|
dsn = "postgresql://medols_user:MedolsDB@2025@38.47.185.79:5432/medols_db" # <driver>://<username>:<password>@<host>:<port>/<database>
|
2025-09-16 16:16:51 +00:00
|
|
|
log-mode = "ERROR"
|
2025-09-16 18:21:27 +00:00
|
|
|
migrate = true
|
2025-09-16 16:16:51 +00:00
|
|
|
seed = false
|
2024-03-05 19:15:53 +00:00
|
|
|
|
|
|
|
|
[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
|
|
|
|
|
|
2024-03-06 14:00:43 +00:00
|
|
|
[objectstorage.miniostorage]
|
2025-12-15 03:19:53 +00:00
|
|
|
endpoint = "is3.cloudhost.id"
|
|
|
|
|
access-key-id = "YRP1RM617986USRU6NN8"
|
|
|
|
|
secret-access-key = "vfbwQDYb1m7nfzo4LVEz90BIyOWfBMZ6bfGQbqDO"
|
2026-01-02 10:06:38 +00:00
|
|
|
use-ssl = true
|
2025-07-03 05:24:50 +00:00
|
|
|
bucket-name = "mikulnews"
|
2024-03-06 14:00:43 +00:00
|
|
|
location = "us-east-1"
|
|
|
|
|
|
2024-03-05 19:15:53 +00:00
|
|
|
[middleware.compress]
|
|
|
|
|
enable = true
|
|
|
|
|
level = 1
|
|
|
|
|
|
|
|
|
|
[middleware.recover]
|
|
|
|
|
enable = true
|
|
|
|
|
|
|
|
|
|
[middleware.monitor]
|
2025-04-07 01:12:02 +00:00
|
|
|
enable = true
|
2024-03-05 19:15:53 +00:00
|
|
|
path = "/monitor"
|
|
|
|
|
|
|
|
|
|
[middleware.pprof]
|
|
|
|
|
enable = true
|
|
|
|
|
|
2024-04-03 17:43:16 +00:00
|
|
|
[middleware.cors]
|
|
|
|
|
enable = true
|
|
|
|
|
|
2024-03-05 19:15:53 +00:00
|
|
|
[middleware.limiter]
|
2025-04-07 01:12:02 +00:00
|
|
|
enable = true
|
2024-03-05 19:15:53 +00:00
|
|
|
max = 20
|
2024-05-03 18:01:31 +00:00
|
|
|
expiration_seconds = 60
|
|
|
|
|
|
2025-04-09 21:28:46 +00:00
|
|
|
[middleware.csrf]
|
2025-05-09 02:30:05 +00:00
|
|
|
enable = false
|
2025-04-09 21:38:56 +00:00
|
|
|
cookie-name = "csrf_"
|
2025-05-02 08:17:36 +00:00
|
|
|
cookie-same-site = "Lax"
|
2025-04-09 21:38:56 +00:00
|
|
|
cookie-secure = false
|
|
|
|
|
cookie-session-only = true
|
|
|
|
|
cookie-http-only = true
|
2025-04-09 21:28:46 +00:00
|
|
|
|
2025-04-07 01:12:02 +00:00
|
|
|
[middleware.audittrails]
|
|
|
|
|
enable = true
|
2025-04-09 21:28:46 +00:00
|
|
|
retention = 30
|
2025-04-07 01:12:02 +00:00
|
|
|
|
2024-05-03 18:01:31 +00:00
|
|
|
[keycloak]
|
2025-12-28 10:45:48 +00:00
|
|
|
endpoint = "http://38.47.185.86:8008"
|
2025-08-01 02:38:56 +00:00
|
|
|
realm = "medols"
|
|
|
|
|
client-id = "medols-app"
|
|
|
|
|
client-secret = "iyonEpZbAUs20quwaNFLMwRX7MUgPRlS"
|
2024-11-06 14:43:41 +00:00
|
|
|
admin-username = "developer-admin"
|
2025-01-24 04:06:55 +00:00
|
|
|
admin-password = "P@ssw0rd.1"
|
|
|
|
|
|
|
|
|
|
[smtp]
|
2025-08-01 02:43:31 +00:00
|
|
|
host = "mail.polri.go.id"
|
2025-01-24 04:06:55 +00:00
|
|
|
port = 465
|
2025-02-06 21:14:25 +00:00
|
|
|
username = "webhumas.divhumas@polri.go.id"
|
2025-08-01 02:43:31 +00:00
|
|
|
password = "8vm1nxxTsaB6"
|
2025-02-06 21:14:25 +00:00
|
|
|
from-address = "webhumas.divhumas@polri.go.id"
|
|
|
|
|
from-name = "APLIKASI WEB HUMAS DIVHUMAS POLRI"
|