mirror of
https://github.com/hoppscotch/hoppscotch
synced 2024-11-23 07:39:55 +00:00
31 lines
570 B
Plaintext
31 lines
570 B
Plaintext
{
|
|
admin off
|
|
persist_config off
|
|
}
|
|
|
|
:{$HOPP_AIO_ALTERNATE_PORT:80} {
|
|
# Serve the `selfhost-web` SPA by default
|
|
root * /site/selfhost-web
|
|
file_server
|
|
|
|
handle_path /admin* {
|
|
root * /site/sh-admin-subpath-access
|
|
file_server
|
|
|
|
# Ensures any non-existent file in the server is routed to the SPA
|
|
try_files {path} /
|
|
}
|
|
|
|
# Handle requests under `/backend*` path
|
|
handle_path /backend* {
|
|
reverse_proxy localhost:8080
|
|
}
|
|
|
|
# Catch-all route for unknown paths, serves `selfhost-web` SPA
|
|
handle {
|
|
root * /site/selfhost-web
|
|
file_server
|
|
try_files {path} /
|
|
}
|
|
}
|