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

265
Views
How to use node js and python on same domain?

I have created my project in python (Webapp2), but i want to create admin panel in node js and set it in same directory.

I am facing problem how to route node app.js from url

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Docker is the best option. Use docker and create three container (nginx, nodejs, Webapp2).

for nodejs, use port like 8080
for Webapp2, use port like 8000

links nodejs and Webapp2 with ngninx in docker-compose.yml and configure nginx.conf file.

Use nginx.conf like

location /dashboard {
    proxy_pass http://nodejs:8080;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location / {
    proxy_pass http://webapp2:8000;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
about 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!