change url

This commit is contained in:
Efril 2026-04-26 20:45:15 +07:00
parent 002b708150
commit cf3f2fa8cc
2 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ jwt:
secret: "5Lm25V3Qd7aut8dr4QUxm5PZUrSFs"
postgresql:
host: 36.95.173.27
host: pg16
port: 5432
driver: postgres
db: eslogad_db
@ -27,7 +27,7 @@ s3:
endpoint: http://36.95.173.27:9000 # S3 API endpoint, not console port
bucket_name: enaklo
log_level: Error
host_url: 'https://s3.apskel.org/'
host_url: 'http://36.95.173.27:9000'
log:
log_format: 'json'

View File

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