Nginx reverse proxy for Java Springboot 8080

server {
        listen 80;
        server_name boot.example.com;
        
        location / {
                proxy_pass http://localhost:8080;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;
                proxy_set_header X-Forwarded-Port $server_port;
        }
}
Add to my src(0)

No account yet? Register

Spread the love

Leave a Comment