1
Fork 0

API server listens with the address of `PHOTOVIEW_LISTEN_IP`, #1010. (#1014)

Fix the listened host reference in the `main()` function
This commit is contained in:
Googol Lee 2024-08-09 16:32:07 +02:00 committed by GitHub
parent ebcbe6c057
commit cf1a66975d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -119,5 +119,5 @@ func main() {
} }
log.Panic(http.ListenAndServe(":"+apiListenURL.Port(), handlers.CompressHandler(rootRouter))) log.Panic(http.ListenAndServe(apiListenURL.Host, handlers.CompressHandler(rootRouter)))
} }

View File

@ -28,7 +28,7 @@ services:
env_file: api/example.env env_file: api/example.env
environment: environment:
PHOTOVIEW_DATABASE_DRIVER: sqlite # Change to the right database driver PHOTOVIEW_DATABASE_DRIVER: sqlite # Change to the right database driver
PHOTOVIEW_SQLITE_PATH: api/photoview.db PHOTOVIEW_SQLITE_PATH: photoview.db
PHOTOVIEW_MYSQL_URL: photoview:photosecret@tcp(mysql)/photoview_test PHOTOVIEW_MYSQL_URL: photoview:photosecret@tcp(mysql)/photoview_test
PHOTOVIEW_POSTGRES_URL: postgres://photoview:photosecret@postgres:5432/photoview_test PHOTOVIEW_POSTGRES_URL: postgres://photoview:photosecret@postgres:5432/photoview_test
volumes: volumes: