Enable TOTP, WebAuthn, and lookup secret MFA methods in Kratos config. Fix Monaspace Neon font CDN URL in Gitea theme ConfigMap. Remove redundant Google Fonts preconnect from people-frontend nginx config. Delete unused login-ui-deployment.yaml (login-ui is part of the Ory Helm chart, not a standalone deployment).
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
# nginx config for people-frontend that rewrites the hardcoded production
|
|
# integration URL baked into the desk static Next.js build.
|
|
#
|
|
# sub_filter rewrites integration.lasuite.numerique.gouv.fr → integration.DOMAIN_SUFFIX
|
|
# so the gaufre.js widget and services.json come from our own integration service.
|
|
# gzip must be off for sub_filter to work on JS responses.
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: people-frontend-nginx-conf
|
|
namespace: lasuite
|
|
data:
|
|
default.conf: |
|
|
server {
|
|
listen 3000;
|
|
listen 8080;
|
|
server_name localhost;
|
|
server_tokens off;
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
gzip off;
|
|
sub_filter 'integration.lasuite.numerique.gouv.fr' 'integration.DOMAIN_SUFFIX';
|
|
sub_filter '</head>' '<link rel="stylesheet" href="https://integration.DOMAIN_SUFFIX/api/v2/theme.css"></head>';
|
|
sub_filter_once off;
|
|
sub_filter_types text/html application/javascript;
|
|
|
|
location / {
|
|
try_files $uri index.html $uri/ =404;
|
|
}
|
|
|
|
location /teams/ {
|
|
error_page 404 /teams/[id]/;
|
|
}
|
|
|
|
location /mail-domains/ {
|
|
error_page 404 /mail-domains/[slug]/;
|
|
}
|
|
|
|
error_page 404 /404.html;
|
|
location = /404.html {
|
|
internal;
|
|
}
|
|
}
|