[stork-users] Stork question about base URL

Slawek Figiel slawek at isc.org
Thu Dec 14 09:36:43 UTC 2023


Hello Mik!

After installing the Stork server from the packages, the UI files are 
located in the /usr/share/stork/www directory. Have you moved them from 
this directory?

If you placed the static UI files in another directory or on another 
machine. In that case, the base URL argument is not applicable, and you 
need to manually configure your reverse proxy and base URL in the index 
file following the steps described in the documentation.

See 
https://stork.readthedocs.io/en/latest/install.html#stork-ui-behind-a-reverse-proxy 
for detailed info about the base URL argument.

 > Are base URL and rest base URL the same?

Yes, they are. All HTTP server-related CLI arguments have the `rest-` 
prefix.

Regards
Slawek Figiel


On 13/12/2023 00:28, Mik J wrote:
> Hello,
> 
> When I start the stork server I have this message
> WARN[2023-12-12 23:47:08]      restservice.go:354   Cannot read the base 
> URL in the '/usr/share/stork/www/index.html' file because it is missing. 
> If the files are located on separate machine, you need manually change 
> the 'href' value of the <base> HTML tag to '/'  error="open 
> /usr/share/stork/www/index.html: no such file or directory"
> 
> 
> And indeed, this path doesn't exist on my system.
> 
> When I call the help for the stork-server there is no mension about a 
> base URL
> # stork-server --help
> except for the rest base url --rest-base-url=
> Are base URL and rest base URL the same ?
> 
> The help says
>   --rest-base-url=                                     The base URL of 
> the UI. Specify this flag if the UI is served from a subdirectory (not 
> the root URL). It must start and end with a slash. Example:
>                                                             
> https://www.example.com/admin/stork/ would need to have '/admin/stork/' 
> as the rest-base-url (default: /) [$STORK_REST_BASE_URL]
> 
> It says it's used for the user interface but how can I get rid of this 
> error message ?
> 
> 
> 


More information about the Stork-users mailing list