Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust nginx configuration for about pages #657

Merged
merged 6 commits into from
Feb 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions docker/nginx/locations
Original file line number Diff line number Diff line change
@@ -1,23 +1,30 @@
# Frontend
root /usr/local/app/frontend/dist/digital-fuesim-manv;
error_page 404 /index.html;
error_page 403 /index.html;

location /assets/about {
# Requests to this location should not fall back to index.html
}

location / {
alias /usr/local/app/frontend/dist/digital-fuesim-manv/;
try_files $uri $uri/ /index.html;
}

# API
location /api {
proxy_pass http://localhost:3201;
proxy_pass http://localhost:3201;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
include conf.d/upload-limit;
}
}

# Websocket
location /socket.io {
location /socket.io {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://localhost:3200;
Expand All @@ -28,4 +35,4 @@
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
include conf.d/upload-limit;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ <h1 class="display-3 mt-3">Digitale FüSim MANV</h1>
<h2 class="display-4">{{ pageTitle }}</h2>

<p>
<a (click)="back($event)" href="#">Zurück zur vorherigen Seite</a>
<a (click)="back($event)" href="#">Zurück zur vorherigen Seite</a> |
<a routerLink="/">Zur Startseite</a>
</p>

<div
Expand Down