Would Discourse/Docker work on Nginx without a plethora of work?

(that guy) #1

I think it would work. but it would probably require a ton of work. Does anyone have a simple way? Or should I just give up on hosting it myself? I would love to, as I have made my old laptop into a web server. It runs Lubuntu with Nginx installed. Does anyone have experience with this at all? Thanks!

(Ilya Kuchaev) #2

Just change the Docker port at app.yml:

## which TCP/IP ports should this container expose?
  - "8080:80"   # fwd host port 80   to container port 80 (http)
  - "2222:22" # fwd host port 2222 to container port 22 (ssh)

and configure the proxy on Nginx:

server {
        listen 80;

        server_name example.com;

        location / {
            proxy_set_header   X-Real-IP        $remote_addr;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
            proxy_set_header   Host             $host;



(that guy) #3

Thanks a lot @kuchaev_iv! Really new to web servers you see :slight_smile: