This reverts commit a48effcdfe.

Revert "Test of monolithic caddyfile"

This reverts commit db65bf7e7b.

Revert "Added quick log fetch command to justfile"

This reverts commit 24e6305d73.

Revert "Caddy config tweak for sockets and uwsgi protocol"

This reverts commit 40ff7a3c39.
This commit is contained in:
2025-01-30 17:18:52 +00:00
parent a48effcdfe
commit 19317688ba
3 changed files with 4 additions and 82 deletions

View File

@@ -1,4 +1,4 @@
{ import repo.caddyfile {
admin off admin off
debug debug
log { log {
@@ -6,77 +6,6 @@
} }
} }
# Repo config
(repo_cors) {
header {
Access-Control-Allow-Origin *
Access-Control-Allow-Methods "GET, POST, PUT, PATCH, DELETE, OPTIONS"
Access-Control-Allow-Headers "*"
Access-Control-Allow-Credentials true
Strict-Transport-Security "max-age=15768000"
# Request ID tracing
+X-Request-ID {uuid}
}
}
(repo_common_proxy) {
# Set headers similar to uwsgi_param
header_up Host {host}
header_up X-Request-ID {uuid}
# Remove sensitive headers
header_down -X-Session-ID
header_down -X-User-ID
}
(repo_site) {
import repo_cors
# UI Server routes
handle / {
request_body {
max_size 100MB
}
reverse_proxy / repo-web-ui:5000 {
transport uwsgi
import repo_common_proxy
}
}
# API routes
handle /api/* {
request_body {
max_size 100MB
}
reverse_proxy / repo-web-api:5000 {
transport uwsgi
import repo_common_proxy
}
}
# Large file upload API routes
handle_path /api/records/*/draft/files/*/content {
request_body {
max_size 250GB
}
encode gzip
reverse_proxy / repo-web-api:5000 {
transport uwsgi
import repo_common_proxy
}
}
handle /static/* {
root * /opt/invenio/var/instance/static
file_server
}
handle /robots.txt {
root * /opt/invenio/var/instance/static
file_server
}
}
# Main site config
(site) { (site) {
@landing { @landing {
path / /contact* /about* /favicon.png path / /contact* /about* /favicon.png

View File

@@ -27,8 +27,7 @@
request_body { request_body {
max_size 100MB max_size 100MB
} }
reverse_proxy / repo-web-ui:5000 { reverse_proxy repo-web-ui:5000 {
transport uwsgi
import repo_common_proxy import repo_common_proxy
} }
} }
@@ -38,8 +37,7 @@
request_body { request_body {
max_size 100MB max_size 100MB
} }
reverse_proxy / repo-web-api:5000 { reverse_proxy repo-web-api:5000 {
transport uwsgi
import repo_common_proxy import repo_common_proxy
} }
} }
@@ -50,8 +48,7 @@
max_size 250GB max_size 250GB
} }
encode gzip encode gzip
reverse_proxy / repo-web-api:5000 { reverse_proxy repo-web-api:5000 {
transport uwsgi
import repo_common_proxy import repo_common_proxy
} }
} }

View File

@@ -83,7 +83,3 @@ cleanup-versions:
git tag -d $tag git tag -d $tag
rm -f "versions/${tag#backup-}.txt" rm -f "versions/${tag#backup-}.txt"
done done
fetch-logs container:
#!/usr/bin/env bash
ssh am-d-model_eu "docker logs am-d-modeleu-{{container}}-1 2>&1"