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.

App issue: Nginx Reverse Proxy

See original GitHub issue

hi there,

I tried to install the one click app Nginx Reverse Proxy. However when going on the link it returns the default: Nothing here yet 😕

Any ideas why?

Build logs

------------------------- Fri Feb 04 2022 14:34:53 GMT+0000 (Coordinated Universal Time)
Build started for gateway
An explicit image name was provided (caprover/nginx-reverse-proxy:latest). Therefore, no build process is needed.
Pulling this image: caprover/nginx-reverse-proxy:latest This process might take a few minutes.
Build has finished successfully!

App logs None

Env variables:

UPSTREAM_HTTP_ADDRESS=http://www.google.com
CLIENT_MAX_BODY_SIZE=256M

Caprover is running on two Raspberry Pi 4 8GB with one Manager and one worker.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
m4rcstercommented, Feb 6, 2022

Step 2 did it. but first bricked the captain-nginx container

image

Running the code below from the help, fixed then everything.

docker service scale captain-captain=0 && \
docker run -it --rm -v /captain:/captain  caprover/caprover /bin/bash -c "wget https://raw.githubusercontent.com/caprover/caprover/master/dev-scripts/clear-custom-nginx.js ; node clear-custom-nginx.js ;" && \
docker service scale captain-captain=1 && \
echo "OKAY"

Thanks for the help! Much appreciated.

0reactions
githubsaturncommented, Feb 6, 2022

Everything seems correct. Let’s try this: Step 1:

  • Go to you dashboard > App gate > Deployment tab > Method 6: Deploy via ImageName
  • Deploy this image nginx:alpine
  • Wait until deployment is done
  • Retry, are you still seeing the blue page? If yes, proceed to step 2:

Step 2:

docker service update captain-captain --force
  • Wait for 60 seconds
  • Retry, are you still seeing the blue page? If yes, proceed to step 3:

Step 3: Get the nginx logs while you’re force refreshing your browser on gate.chuchichaeschtli.cloud

docker service logs captain-nginx --tail 50 --follow

What are the log entries?

Read more comments on GitHub >

github_iconTop Results From Across the Web

NGINX Reverse Proxy
Configure NGINX as a reverse proxy for HTTP and other protocols, with support for modifying request headers and fine-tuned buffering of responses.
Read more >
NGINX Reverse Proxy Configuration and Troubleshooting
In normal reverse proxy configuration, NGINX act as a TLS terminator, it will not pass TLS connection to original server. In some scenario...
Read more >
How to setup an Nginx reverse proxy server example
Here's a quick tutorial to setup an Nginx reverse proxy server. This example uses an Apache Tomcat server but the config settings apply...
Read more >
NGINX as Reverse Proxy for Node or Angular application
A reverse proxy is a server that retrieves resources for clients from one or more upstream servers. It typically places itself behind a...
Read more >
How to use Nginx as reverse proxy and secure connections ...
You can also use proxying to pass requests for processing to application servers over protocols other than HTTP. Nginx is easy to configure ......
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