Skip to content

SQLPage and nginx in docker #585

Answered by ionv06
ionv06 asked this question in Q&A
Sep 13, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Solved with two rewrite

    location / {
        rewrite ^(.+)/$ $1 permanent;
        rewrite ^(/[^.]*[^/])$ $1.sql break;
        proxy_pass http://sqlpage:8080;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@lovasoa
Comment options

Answer selected by ionv06
Comment options

You must be logged in to vote
1 reply
@ionv06
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants