This repository was archived by the owner on Jul 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 2
2
PREPPED_DATA_DIR = ' /data'
3
3
4
4
[server_config ]
5
+ # This is the server listening host - recommended to use 0.0.0.0 in deployed
6
+ # environments, but 127.0.0.1 might be more suitable for local environments
7
+ HOST = ' 0.0.0.0'
5
8
TIFF_CACHE_DIR = ' <some location to cache geotiffs>'
6
9
REGIONAL_CACHE_DIR = ' <some location to cache regional datasets>'
7
10
DEBUG_MODE = ' false'
Original file line number Diff line number Diff line change @@ -303,12 +303,16 @@ function start_server(config_path)
303
303
@info " Setting up admin routes..."
304
304
setup_admin_routes (config)
305
305
306
+ # Which host should we listen on?
307
+ host = config[" server_config" ][" HOST" ]
308
+ # Which port should we listen on?
306
309
port = 8000
307
- @info " Initialisation complete, starting server on port $(port) with $(Threads. nthreads ()) threads."
310
+
311
+ @info " Initialisation complete, starting server listening on host: $(host) at port $(port) with $(Threads. nthreads ()) threads."
308
312
309
313
return serve (;
310
314
middleware= [CorsMiddleware],
311
- host= " 127.0.0.1 " ,
315
+ host= host ,
312
316
port= port,
313
317
parallel= Threads. nthreads () > 1 ,
314
318
is_prioritized= (req:: HTTP.Request ) -> req. target == " /health"
You can’t perform that action at this time.
0 commit comments