mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
chore: add caddyfile [ci skip]
This commit is contained in:
parent
0a7ebc4dc7
commit
31c462c275
26
Caddyfile
Normal file
26
Caddyfile
Normal file
@ -0,0 +1,26 @@
|
||||
wakapi.yourdomain.tld {
|
||||
encode zstd gzip
|
||||
|
||||
header {
|
||||
Strict-Transport-Security "max-age=2592000; includeSubDomains"
|
||||
}
|
||||
|
||||
log {
|
||||
output file /var/log/caddy/wakapi.dev.access.log
|
||||
format single_field common_log
|
||||
}
|
||||
|
||||
reverse_proxy http://[::1]:3000
|
||||
|
||||
@api path_regexp "^/api.*"
|
||||
@notapi not path_regexp "^/api.*"
|
||||
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user