Skip to content

Commit 04a97da

Browse files
committed
feat: update version to 1.4.28 and add proxy configurations for Authelia static assets in Nginx templates
1 parent 0db60e5 commit 04a97da

3 files changed

Lines changed: 29 additions & 1 deletion

File tree

catalog/p/pgsql-pgrest-pgweb-nginx/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://raw.githubusercontent.com/node-pulse/playbooks/refs/heads/main/schemas/node-pulse-admiral-playbook-manifest-v1.schema.json",
33
"id": "pb_PgRstPgWeb",
44
"name": "PostgreSQL Stack (PostgreSQL + PostgREST + pgweb + Nginx)",
5-
"version": "1.4.27",
5+
"version": "1.4.28",
66
"description": "Complete PostgreSQL service stack with PostgreSQL 18, PostgREST RESTful API with JWT authentication, pgweb web UI protected by Authelia 2FA, and Nginx reverse proxy with path-based routing and automatic SSL",
77
"author": {
88
"name": "Yumin",

catalog/p/pgsql-pgrest-pgweb-nginx/templates/nginx-http-postgresql-stack.conf.j2

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,20 @@ server {
4949
return 301 $scheme://$host{{ authelia_path }}/;
5050
}
5151

52+
# Authelia static assets - Authelia generates URLs without subpath prefix
53+
# so we proxy /static/ and /manifest.json to Authelia's subpath
54+
location /static/ {
55+
proxy_pass http://127.0.0.1:{{ authelia_port }}{{ authelia_path }}/static/;
56+
proxy_set_header Host $host;
57+
proxy_set_header X-Forwarded-Proto $scheme;
58+
}
59+
60+
location = /manifest.json {
61+
proxy_pass http://127.0.0.1:{{ authelia_port }}{{ authelia_path }}/manifest.json;
62+
proxy_set_header Host $host;
63+
proxy_set_header X-Forwarded-Proto $scheme;
64+
}
65+
5266
# pgweb - protected by Authelia
5367
location {{ pgweb_path }}/ {
5468
auth_request /authelia-verify;

catalog/p/pgsql-pgrest-pgweb-nginx/templates/nginx-https-postgresql-stack.conf.j2

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,20 @@ server {
6161
return 301 $scheme://$host{{ authelia_path }}/;
6262
}
6363

64+
# Authelia static assets - Authelia generates URLs without subpath prefix
65+
# so we proxy /static/ and /manifest.json to Authelia's subpath
66+
location /static/ {
67+
proxy_pass http://127.0.0.1:{{ authelia_port }}{{ authelia_path }}/static/;
68+
proxy_set_header Host $host;
69+
proxy_set_header X-Forwarded-Proto $scheme;
70+
}
71+
72+
location = /manifest.json {
73+
proxy_pass http://127.0.0.1:{{ authelia_port }}{{ authelia_path }}/manifest.json;
74+
proxy_set_header Host $host;
75+
proxy_set_header X-Forwarded-Proto $scheme;
76+
}
77+
6478
# pgweb - protected by Authelia
6579
location {{ pgweb_path }}/ {
6680
# Authelia authentication

0 commit comments

Comments
 (0)