Added optionnal online storage and cross-client sync
All checks were successful
Tests et déploiement / validate (push) Successful in 2m44s
Tests et déploiement / deploy (push) Successful in 51s

This commit is contained in:
2026-10-10 16:01:06 +02:00
parent 277b9c887e
commit 5686ee5072
33 changed files with 2466 additions and 25 deletions

View File

@@ -31,6 +31,12 @@ http://{$SITE_ADDRESS} {
}
{$SITE_ADDRESS} {
handle /api/sync/* {
reverse_proxy sync:3001 {
header_up X-Pardis-Client-IP {client_ip}
}
}
root * /srv
encode zstd gzip
@@ -55,6 +61,7 @@ http://{$SITE_ADDRESS} {
header @manifest Content-Type "application/manifest+json"
header {
Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; connect-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'"
X-Content-Type-Options nosniff
X-Frame-Options DENY
Referrer-Policy strict-origin-when-cross-origin
@@ -62,6 +69,8 @@ http://{$SITE_ADDRESS} {
}
# The app routes on the hash, so this only catches someone typing a stray path.
try_files {path} /index.html
file_server
handle {
try_files {path} /index.html
file_server
}
}