chore(deploy): adjust local user permissions and Caddy routing blocks
This commit is contained in:
@@ -20,8 +20,9 @@ malenia.space {
|
||||
}
|
||||
|
||||
@api path /api/*
|
||||
route @api {
|
||||
rate_limit {
|
||||
handle @api {
|
||||
route {
|
||||
rate_limit {
|
||||
zone auth {
|
||||
match {
|
||||
path /api/auth/login /api/auth/signup /api/auth/refresh
|
||||
@@ -58,13 +59,16 @@ malenia.space {
|
||||
window 1m
|
||||
ipv6_prefix 64
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
uri strip_prefix /api
|
||||
reverse_proxy backend:8000
|
||||
uri strip_prefix /api
|
||||
reverse_proxy backend:8000
|
||||
}
|
||||
}
|
||||
|
||||
root * /srv
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
handle {
|
||||
root * /srv
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,47 +11,51 @@
|
||||
}
|
||||
|
||||
@api path /api/*
|
||||
route @api {
|
||||
rate_limit {
|
||||
zone auth {
|
||||
match {
|
||||
path /api/auth/login /api/auth/signup /api/auth/refresh
|
||||
handle @api {
|
||||
route {
|
||||
rate_limit {
|
||||
zone auth {
|
||||
match {
|
||||
path /api/auth/login /api/auth/signup /api/auth/refresh
|
||||
}
|
||||
key {remote_host}
|
||||
events 10
|
||||
window 1m
|
||||
}
|
||||
key {remote_host}
|
||||
events 10
|
||||
window 1m
|
||||
}
|
||||
zone checkout {
|
||||
match {
|
||||
path /api/orders/checkout
|
||||
zone checkout {
|
||||
match {
|
||||
path /api/orders/checkout
|
||||
}
|
||||
key {remote_host}
|
||||
events 10
|
||||
window 10m
|
||||
}
|
||||
key {remote_host}
|
||||
events 10
|
||||
window 10m
|
||||
}
|
||||
zone payment_callback {
|
||||
match {
|
||||
path /api/payments/pally/result
|
||||
zone payment_callback {
|
||||
match {
|
||||
path /api/payments/pally/result
|
||||
}
|
||||
key {remote_host}
|
||||
events 60
|
||||
window 1m
|
||||
}
|
||||
key {remote_host}
|
||||
events 60
|
||||
window 1m
|
||||
}
|
||||
zone api {
|
||||
match {
|
||||
not path /api/health/
|
||||
zone api {
|
||||
match {
|
||||
not path /api/health/
|
||||
}
|
||||
key {remote_host}
|
||||
events 120
|
||||
window 1m
|
||||
}
|
||||
key {remote_host}
|
||||
events 120
|
||||
window 1m
|
||||
}
|
||||
}
|
||||
|
||||
uri strip_prefix /api
|
||||
reverse_proxy backend:8000
|
||||
uri strip_prefix /api
|
||||
reverse_proxy backend:8000
|
||||
}
|
||||
}
|
||||
|
||||
root * /srv
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
handle {
|
||||
root * /srv
|
||||
try_files {path} /index.html
|
||||
file_server
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user