Update client/nginx.conf
This commit is contained in:
@@ -6,14 +6,17 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# === App Angular servie sous /gameovergne/ ===
|
||||
location /gameovergne/ {
|
||||
# === App Angular servie à la racine du conteneur ===
|
||||
# Traefik enlève déjà /gameovergne, donc ici on est sur "/"
|
||||
location / {
|
||||
# SPA : toutes les routes Angular renvoient index.html
|
||||
try_files $uri $uri/ /gameovergne/index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# === Proxy PrestaShop : /gameovergne/ps/* -> https://shop.gameovergne.fr/api/* ===
|
||||
location /gameovergne/ps/ {
|
||||
# === Proxy PrestaShop : /ps/* -> https://shop.gameovergne.fr/api/* ===
|
||||
# Côté navigateur, l'app appelle /gameovergne/ps/...
|
||||
# Traefik strippe /gameovergne -> Nginx voit /ps/...
|
||||
location /ps/ {
|
||||
proxy_pass https://shop.gameovergne.fr/api/;
|
||||
|
||||
# "changeOrigin: true"
|
||||
|
||||
Reference in New Issue
Block a user