5 Commits

Author SHA1 Message Date
24273bd9c7 Merge pull request 'Fixing bug which is showing the roles to any authenticated user. This is only relevant for developers.' (#3) from develop into main
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 51s
Build and Push Docker Image / deploy (push) Successful in 4s
Reviewed-on: #3
2025-11-13 20:22:35 +01:00
Murat Özkorkmaz
8ea8f12fa9 Fixing bug which is showing the roles to any authenticated user. This is only relevant for developers. 2025-11-13 20:22:15 +01:00
2dec7cad43 Merge pull request 'Fixing logos' (#2) from develop into main
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 50s
Build and Push Docker Image / deploy (push) Successful in 4s
Reviewed-on: #2
2025-11-13 20:16:47 +01:00
Murat Özkorkmaz
87dbd0ba44 Fixing logos 2025-11-13 20:16:21 +01:00
2b2f953732 Merge pull request 'Several fixes' (#1) from develop into main
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m0s
Build and Push Docker Image / deploy (push) Successful in 4s
Reviewed-on: #1
2025-11-13 20:01:43 +01:00
3 changed files with 12 additions and 1 deletions

View File

@@ -37,6 +37,9 @@ COPY docker/nginx.conf /etc/nginx/nginx.conf
# Copy the static build output from the build stage to Nginx's default HTML serving directory # Copy the static build output from the build stage to Nginx's default HTML serving directory
COPY --chown=nginx:nginx --from=builder /app/dist/*/browser /usr/share/nginx/html COPY --chown=nginx:nginx --from=builder /app/dist/*/browser /usr/share/nginx/html
# Copy logos from public folder to root for direct access (needed for i18n builds)
COPY --chown=nginx:nginx --from=builder /app/public/logo-*.png /usr/share/nginx/html/
# Expose port 8080 to allow HTTP traffic # Expose port 8080 to allow HTTP traffic
# Note: The default NGINX container now listens on port 8080 instead of 80 # Note: The default NGINX container now listens on port 8080 instead of 80
EXPOSE 8080 EXPOSE 8080

View File

@@ -53,6 +53,14 @@ http {
return 301 $scheme://$http_host/de/; return 301 $scheme://$http_host/de/;
} }
# Serve logos directly from root (needed for i18n builds)
location ~ ^/logo-(dark|light)\.png$ {
try_files $uri =404;
expires 1y;
access_log off;
add_header Cache-Control "public, immutable";
}
# Serve each locale # Serve each locale
location ~ ^/(de|de-DE|en)/ { location ~ ^/(de|de-DE|en)/ {
try_files $uri $uri/ /$1/index.html; try_files $uri $uri/ /$1/index.html;

View File

@@ -24,7 +24,7 @@ import { Tag } from 'primeng/tag';
<img [src]="logo" alt="App Logo" style="width: 1.3em;"/> <img [src]="logo" alt="App Logo" style="width: 1.3em;"/>
</a> </a>
@if (keycloak.authenticated) { @if (keycloak.authenticated && keycloak.hasRealmRole("dev")) {
<p-tag severity="success" value="Authenticated" /> <p-tag severity="success" value="Authenticated" />
@if (keycloak) { @if (keycloak) {
<p-tag severity="info" value="Realm: {{ keycloak.realm }}" /> <p-tag severity="info" value="Realm: {{ keycloak.realm }}" />