Avoir une page 500 #22

Closed
opened 2022-03-02 08:27:23 +01:00 by dbroqua · 0 comments
Owner

Avoir une bête page 500.html dans le dossier public/ pour les fois où le service ne répond pas (reboot de l'instance docker etc).

Exemple de conf nginx associé :

upstream mml-env {
        server 0.0.0.0:3001;
}

server {
        listen 443 ssl http2;

        server_name mml.darkou.fr;
        root /srv/MusicTopus/public;

        location / {
                try_files $uri @proxy;
        }

        location @proxy {
                proxy_read_timeout 300;
                proxy_connect_timeout 300;
                proxy_redirect off;

                proxy_set_header X-Forwarded-Proto $scheme;
                proxy_set_header Host $http_host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-Ssl on;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Frame-Options SAMEORIGIN;

                proxy_pass http://mml-env;

                tcp_nodelay on;
        }

        error_page 500 501 502 503 504 /500.html;
}
Avoir une bête page `500.html` dans le dossier `public/` pour les fois où le service ne répond pas (reboot de l'instance docker etc). Exemple de conf nginx associé : ```nginx upstream mml-env { server 0.0.0.0:3001; } server { listen 443 ssl http2; server_name mml.darkou.fr; root /srv/MusicTopus/public; location / { try_files $uri @proxy; } location @proxy { proxy_read_timeout 300; proxy_connect_timeout 300; proxy_redirect off; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Ssl on; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Frame-Options SAMEORIGIN; proxy_pass http://mml-env; tcp_nodelay on; } error_page 500 501 502 503 504 /500.html; } ```
dbroqua added the
enhancement
label 2022-03-02 08:27:28 +01:00
dbroqua self-assigned this 2022-03-02 08:27:33 +01:00
dbroqua referenced this issue from a commit 2022-03-02 14:17:20 +01:00
!22
dbroqua referenced this issue from a commit 2022-03-02 14:18:12 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: dbroqua/MusicTopus#22
No description provided.