1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00
wakapi/Caddyfile

27 lines
719 B
Caddyfile
Raw Normal View History

2022-01-08 15:33:24 +03:00
wakapi.yourdomain.tld {
2022-01-08 15:34:49 +03:00
encode zstd gzip
2022-01-08 15:33:24 +03:00
2022-01-08 15:34:49 +03:00
header {
Strict-Transport-Security "max-age=2592000; includeSubDomains"
}
2022-01-08 15:33:24 +03:00
2022-01-08 15:34:49 +03:00
log {
output file /var/log/caddy/wakapi.dev.access.log
format single_field common_log
}
2022-01-08 15:33:24 +03:00
2022-01-08 15:34:49 +03:00
reverse_proxy http://[::1]:3000
2022-01-08 15:33:24 +03:00
2022-01-08 15:34:49 +03:00
@api path_regexp "^/api.*"
@notapi not path_regexp "^/api.*"
2022-01-08 15:33:24 +03:00
2022-01-08 15:34:49 +03:00
push @notapi /assets/vendor/source-sans-3.css
push @notapi /assets/css/app.dist.css
push @notapi /assets/vendor/petite-vue.min.js
push @notapi /assets/vendor/chart.min.js
push @notapi /assets/vendor/iconify.basic.min.js
push @notapi /assets/js/icons.dist.js
push @notapi /assets/js/base.js
push @notapi /assets/images/logo.svg
2022-01-08 15:33:24 +03:00
}