Git Product home page Git Product logo

Comments (4)

DomiStyle avatar DomiStyle commented on May 28, 2024

I'm running multiple instances behind a reverse proxy.

Two things you can try:

  • Remove the slash at the end of your proxy pass: proxy_pass http://127.0.0.1:5800;
  • Include the proxy parameters before your location block: include proxy_params;

from docker-idrac6.

firestormv1 avatar firestormv1 commented on May 28, 2024

Tried changing the slash at the end of the proxy pass statement, no change.

Tried adding the proxy_params directive and this broke nginx config. I don't think it exists in my configuration.

Tried defining proxy_params from a "generic" configuration and didn't change anything (except allowed nginx to start).

from docker-idrac6.

DomiStyle avatar DomiStyle commented on May 28, 2024

This is the configuration I use:

/etc/nginx/conf.d/proxy.conf:

map $http_x_forwarded_proto $proxy_x_forwarded_proto
{
    default $http_x_forwarded_proto;
    '' $scheme;
}
map $http_upgrade $proxy_connection
{
    default upgrade;
    '' close;
}

/etc/nginx/proxy_params:

proxy_http_version 1.1;
proxy_buffering off;

proxy_set_header 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 $proxy_x_forwarded_proto;

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $proxy_connection;

proxy_set_header Proxy "";

proxy_read_timeout 1d;

/etc/nginx/sites-available/srv1.idrac.example.org:

server
{
    #include listen.conf;
    server_name srv1.idrac.example.org;

    #include headers.conf;
    #include ssl_headers.conf;
    #include ssl.conf;

    #ssl_certificate /certs/idrac.example.org/fullchain.pem;
    #ssl_certificate_key /certs/idrac.example.org/privkey.pem;

    #include auth_sso.conf;
    include proxy_params;

    location /
    {
        proxy_pass http://node01.example.org:5801;
    }
}

I commented out the HTTPS parts, just need to add a listen for port 80 and adjust your upstream host.

from docker-idrac6.

firestormv1 avatar firestormv1 commented on May 28, 2024

Excellent! That works! Thank you for the help! I really appreciate it.

Just in case anyone comes behind me and asks the same question, be careful of the proxy.conf file.
The line that reads ''$scheme; and ''close; have a space between the single quotes and the keywords. Github butchered the output.

from docker-idrac6.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.