Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

271
Views
Nginx proxy to CFSS Connection refused

I have CFSSL service running in kubernetes on port 8888. I can access it API's from another pod directly referring cfssl:8888. I want to expose it via Nginx and I have Nginx running in separate pod with following config

upstream cfssl {
    server cfssl:8888;
}

server {
    listen         80 default_server;
    listen         [::]:80 default_server;
    server_name    localhost;

    location / {
        proxy_pass http://cfssl;
        proxy_set_header Host cfssl;
    }
}

But this Nginx config is not working, I can access cfssl:8888 wethin Nginx pod, but when I do curl localhost:80

curl: (7) Failed to connect to localhost port 80: Connection refused

What is wrong in this setup ?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Inside location block you have not mention port

location / {
        proxy_pass http://cfssl;

it should be something like

server {
    listen         80 default_server;
    listen         [::]:80 default_server;
    server_name    localhost;

    location / {
        proxy_pass http://cfssl:8888;
        proxy_set_header Host cfssl;
    }
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!