How to get into nginx for a digitalocean 1-click setup?


(Dylan Hunt) #1

I can’t seem to install Nginx, but that’s apparently because there already is a nginx running on port 80 in a docker.

But let’s say I want to run more web apps on other ports - don’t I need access to this docker? I can’t install a nginx outside of the docker because it needs port 80 free.

Any suggestions?


(Rafael dos Santos Silva) #2

(Dylan Hunt) #3

This tutorial looks great, but something is strange:

My discourse site is up – i go into /var/discourse – I type ./launcher stop app – I get this response:

app was not started !

But… of course it’s started - it’s running! It’s still running.

Any idea what’s up with this? I’m Googling as I speak, but this seems tough to find


(Rafael dos Santos Silva) #4

Did you rename the file inside the containers folder?


(Dylan Hunt) #5

i was just taking a docker tutorial, and i thought all the numbers was the name. so i renamed from 12315124 to “discourse”. I’ll try using discourse instead of “app”?

EDIT: I restored to a backup because I was doing other weird things too. Should work now i hope. Good catch on the rename


(Dylan Hunt) #6

Ok I was able to follow the tutorial 100% fine, but in the end, It’s ALMOST working but not quite :slight_smile:

Getting a nginx 502 bad gateway

EDIT:

For this step:
/etc/nginx/conf.d/discourse.conf
This file was blank. Was that normal? How does it know to look for discourse.conf if blank? I feel like I’m missing something that has to do with this file.

EDIT 2:
If I don’t use SSL (https), should I comment out - “templates/sshd.template.yml” ?

EDIT 3:
there is no /var/discourse/shared/standalone/nginx.http.sock – this is likely the answer. Searching for this…

EDIT 4:
For this step:
Be sure to remove the next line containing
- “80:80” # fwd host port 80 to container port 80 (http)
This line was completely removed, but nothing was replaced … shouldn’t it be SOME port to port 80? Like “1234:80” ?"

EDIT 5: FIXED ITSELF! Magically! wtf lol


(Kane York) #7

You’re supposed to create the file from the examples in the topic.[quote=“dylanh724, post:6, topic:48357”]
EDIT 3:there is no /var/discourse/shared/standalone/nginx.http.sock – this is likely the answer. Searching for this…
[/quote]

Add the “socketed” template.