Fix the listened host reference in the `main()` function
This commit is contained in:
parent
ebcbe6c057
commit
cf1a66975d
|
@ -119,5 +119,5 @@ func main() {
|
|||
|
||||
}
|
||||
|
||||
log.Panic(http.ListenAndServe(":"+apiListenURL.Port(), handlers.CompressHandler(rootRouter)))
|
||||
log.Panic(http.ListenAndServe(apiListenURL.Host, handlers.CompressHandler(rootRouter)))
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ services:
|
|||
env_file: api/example.env
|
||||
environment:
|
||||
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_POSTGRES_URL: postgres://photoview:photosecret@postgres:5432/photoview_test
|
||||
volumes:
|
||||
|
|
Loading…
Reference in New Issue