Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Fixed caddy
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Oct 7, 2021
1 parent 6385c70 commit 2139e13
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src-tauri/src/uis/caddy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,22 @@ fn caddyfile_config_for_an_app(
header Cache-Control no-cache, no-store
handle {{
root * "{}"
try_files {{path}} {{path}}/ /index.html
file_server
@launcherenv {{
path not ^\/{}
}}
rewrite @launcherenv {{path}}/index.html
root * "{}"
file_server
}}
"#,
ui_port,
LAUNCHER_ENV_URL,
app_interface_port,
admin_interface_port,
app_id.clone(),
LAUNCHER_ENV_URL,
app_ui_folder_path(app_id)
.into_os_string()
.to_str()
Expand Down

0 comments on commit 2139e13

Please sign in to comment.