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