Skip to content

Commit

Permalink
feat(web): added caddy file browser config
Browse files Browse the repository at this point in the history
  • Loading branch information
akorzunin committed Aug 1, 2024
1 parent 1f64fb5 commit 4fea40d
Show file tree
Hide file tree
Showing 4 changed files with 1,154 additions and 2 deletions.
6 changes: 5 additions & 1 deletion deploy/dev/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
redir /download /download/
handle_path /download/* {
root * /srv/build
file_server browse
file_server {
browse ./template.html
hide web frontend
}

}
root * /srv/dist
file_server
Expand Down
5 changes: 4 additions & 1 deletion deploy/dev/Caddyfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ supericosahedron.localhost {
redir /download /download/
handle_path /download/* {
root * build
file_server browse
file_server {
browse ./web/caddy_template/template.html
hide web frontend
}
}
reverse_proxy localhost:5173
header {
Expand Down
1 change: 1 addition & 0 deletions deploy/dev/deploy_local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Caddyfile
- compose.yaml
- ./../../build
- ./../../web/caddy_template/template.html

- name: Deploy file server
ansible.builtin.command:
Expand Down
Loading

0 comments on commit 4fea40d

Please sign in to comment.