question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nginx reverse proxy is not working

See original GitHub issue

i’m using the cloudcommander official docker,and it does not support the nginx reverse proxy,probly becouse of the javascript. it says: “ENOENT: no such file or directory, lstat ‘/usr/src/app/cloudcommand’”

  • Version (cloudcmd -v): v7.3.2
  • Node Version : v8.1.3
  • OS (uname -a on Linux): Linux 831994f55d41 4.19.38-sunxi #5.85 SMP Wed May 8 14:20:48 CEST 2019 armv7l GNU/Linux
  • Browser name/version: google chrome
  • Used Command Line Parameters: docker default

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
coderaisercommented, Nov 14, 2019

@brunoamaral what json file have you edited? You can set env variables using environment:

version: '2'
services:
  web:
    ports:
      - 8000:8000
    volumes:
      - /home/user/cloudcommander:/root
      - /mnt/hdd:/mnt/fs
    image: coderaiser/cloudcmd
    environment:
      - CLOUDCMD_PREFIX='/hello'
    container_name: cloudcommander
    networks:
      - traefik_proxy
    labels:
      - traefik.enable=true
      - "traefik.http.routers.cloudcommander.tls=true"
      # - "traefik.http.routers.cloudcommander.midddlewares=stsheaders"
      - "traefik.http.services.cloudcommander.loadbalancer.server.port=8000"
      - "traefik.http.routers.cloudcommander.rule=Host(`${DOMAIN_NAME_2}`) && PathPrefix(`/cloudcommand`)"
networks:
  traefik_proxy:
    external:
      name: traefik_proxy
  default:
    driver: bridge

But CLOUDCMD_PREFIX is not support right now, but that’s a good idea for a pull request 😃. It can be made editing bin/cloudcmd.js in a similar way as with root.

HELP.md should also be edited.

1reaction
mzramnacommented, May 31, 2019

it worked thanks ^^

Read more comments on GitHub >

github_iconTop Results From Across the Web

proxy - nginx simple proxy_pass to localhost not working
I'm trying to run a minimalist reverse ...
Read more >
NGINX Reverse Proxy Configuration and Troubleshooting
NGINX reverse proxy configuration troubleshooting notes. ... Try to add following Connection: keep-alive in proxy also does not work:.
Read more >
Nginx/proxy not working properly
the problem is that Nginx is giving bad gateway for all proxied requests and timeout for the direct ip access. proxy conf :...
Read more >
Why is reverse proxy is not working with nginx?
I am trying to setup nginx reverse proxy on that application so that I can access it through port 80. At this point...
Read more >
Nginx reverse proxy stopped working overnight. No idea why.
Reboot server. Reboot all network hardware. check that 443 is forwarded to server IP. Ensure that nginx.conf syntax is correct. reload nginx. My ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found