update callback

This commit is contained in:
Aditya Siregar 2026-04-27 10:52:57 +07:00
parent a0cd19357b
commit e234ce89a1

View File

@ -49,8 +49,8 @@ type OnlyOfficeServiceImpl struct {
func NewOnlyOfficeService(processor processor.OnlyOfficeProcessor, cfg *config.OnlyOffice, db *gorm.DB, fileStorage FileStorage) *OnlyOfficeServiceImpl { func NewOnlyOfficeService(processor processor.OnlyOfficeProcessor, cfg *config.OnlyOffice, db *gorm.DB, fileStorage FileStorage) *OnlyOfficeServiceImpl {
return &OnlyOfficeServiceImpl{ return &OnlyOfficeServiceImpl{
processor: processor, processor: processor,
documentBaseURL: getEnvOrDefault("DOCUMENT_BASE_URL", "http://36.95.173.27:4000/api/v1/files"), documentBaseURL: getEnvOrDefault("DOCUMENT_BASE_URL", "https://noken-log-api.tni-ad.mil.id/api/v1/files"),
callbackBaseURL: getEnvOrDefault("CALLBACK_BASE_URL", "http://36.95.173.27:4000/api/v1/onlyoffice/callback"), callbackBaseURL: getEnvOrDefault("CALLBACK_BASE_URL", "https://noken-log-api.tni-ad.mil.id/api/v1/onlyoffice/callback"),
serverURL: cfg.URL, serverURL: cfg.URL,
jwtSecret: cfg.Token, jwtSecret: cfg.Token,
config: cfg, config: cfg,