Fix reproducible frontend Docker deployment
This commit is contained in:
13
Caddyfile
13
Caddyfile
@@ -6,6 +6,10 @@
|
||||
|
||||
:443 {
|
||||
handle_path /api/* {
|
||||
reverse_proxy nsct-api:8080
|
||||
}
|
||||
|
||||
reverse_proxy web:3000
|
||||
|
||||
# Security Headers
|
||||
header {
|
||||
@@ -29,9 +33,6 @@
|
||||
encode gzip zstd
|
||||
|
||||
# Rate limiting (optional, only if NSCT_RATE_LIMIT is set)
|
||||
gzip 1
|
||||
|
||||
# Rate limiting (optional, only if NSCT_RATE_LIMIT is set)
|
||||
@hasRateLimit {
|
||||
expression {env.NSCT_RATE_LIMIT} != ""
|
||||
}
|
||||
@@ -46,6 +47,10 @@
|
||||
# HTTP fallback (when no domain is set)
|
||||
:80 {
|
||||
handle_path /api/* {
|
||||
reverse_proxy nsct-api:8080
|
||||
}
|
||||
|
||||
reverse_proxy web:3000
|
||||
|
||||
header {
|
||||
X-Content-Type-Options nosniff
|
||||
@@ -57,4 +62,4 @@
|
||||
|
||||
encode gzip zstd
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user