• Members 5 posts
    Nov. 23, 2023, 11:16 p.m.

    For a new site that I'm creating, I was looking for a new forum. I came across Misago, and it looks exactly what I'm looking for. Especially, having Django as the web framework. I have installed Misago using the documentation. However, I do not use NGINX Proxy any longer. I use CloudFlare tunnels. I've been trying to remove NGINX but it's not going well. I may not be searching correctly or looking in the right spot; Could you guide me, if it exists, a sample Docker Compose of just Misago? I would be using Redis and Celery, just not NGINX. And it would be for a production website, not just development (playing around).
    Thank you for any assistance.

  • Nov. 23, 2023, 11:27 p.m.

    Hi. It looks like you want to create a fork of misago-docker but remove nginx-proxy and nginx-lets-encrypt services from its docker-compose.yml?

    Maybe its possible to disable them via docker-compose.override.yml with this:

    version: "3"
          replicas: 0
          replicas: 0
  • Members 5 posts
    Nov. 25, 2023, 9:04 p.m.

    That sounds very promising. I'll give that a try this evening. Thank you for the info.

  • Members 5 posts
    Nov. 25, 2023, 10:58 p.m.

    I gave it a try, but I was not able to connect to Misago. I figured it was probably a port issue. Without NGINX Proxy there was nothing to manage the ports. In the docker-compose.override.yml file I added the following misago block:

          - "3031:3031"

    I still could not access Misago.

    I did run docker ps and it showed:

    IMAGE                         COMMAND                  PORTS                                       NAMES
    misago_docker-celery-worker   "celery -A misagodoc…"   3031/tcp                                    misago_docker-celery-worker-1
    misago_docker-misago          "uwsgi --ini uwsgi.i…">3031/tcp, :::3031->3031/tcp   misago_docker-misago-1
    redis:6                       "docker-entrypoint.s…"   6379/tcp                                    misago_docker-redis-6-1
    postgres:15                   "docker-entrypoint.s…"   5432/tcp                                    misago_docker-postgres-15-1

    Any suggestions would be greately appreciated.

  • Nov. 25, 2023, 11:12 p.m.

    Is the 3031 port open on the server you are running Misago on?

    Also, without NGINX you will need to find other way to serve static and media, so NGINX sounds like a must have anyway 🤔

  • Members 5 posts
    Nov. 25, 2023, 11:23 p.m.

    I apologize, I should have specified that. Yes, right now, for testing, I'm using AWS Lightsail server. Just for now (for testing), I opened all ports on the VPS. I haven't used NGINX for a while. I'm completely new to Misago, I actually found it because I was looking for a Django forum and ChatGPT recommend Misago 😊. For the static and media, wouldn't CloudFlare Tunnels & Access serve as the same purpose as NGINX? CloudFlare Tunnels performs SSL termination, CDN, with some additional features of load balancing, DDoS, etc. I'm not sure on the backend how Misago completely works. I entered the misago container and looked at the Django settings.py. That's how I found port 3130. I could see things are a bit different than a normal Django site.

  • Nov. 25, 2023, 11:29 p.m.

    I may be (and pretty sure am) off here. I have no knowledge of CloudFlare Tunnels myself. Is this a proxy service? Or a server you run on your VPS?

    There are three things:

    • Misago which runs as misago service, talks on port 3031 and handles only the application requests (HTML and JSON API).
    • static directory which needs to be served somehow.
    • media directory which also needs to be served somehow.

    In misago-docker, static and media is served by NGINX, and everything else is proxied to the misago service.

  • Members 5 posts
    Nov. 25, 2023, 11:33 p.m.

    Oh no, it's okay. Yes, CloudFlare is pretty much a sophisticated proxy server. It a lot like NGINX Proxy but has a lot more security features that runs on the CloudFlare layer. That way, it doesn't use any of the VPS resources. It sounds like I'm on the right track with the help you provided with the docker override yaml. I'll keep digging and see if I can get it to work. I really appreciate your help!