• Justman10000remove_circle_outline
    44 posts
    2 years ago

    Can one deactivate Let's Encrypt and let misago run only via http? So that one can then use a reverse proxy externally

  • rafalplens
    2 years ago

    AFAIR simplest way to achieve that is to create fork of misago-docker that deletes nginx-lets-encrypt from docker-compose.yml file.

  • Justman10000remove_circle_outline
    44 posts
    2 years ago

    grafik.png

    grafik.png

    PNG, 9.8 KB, uploaded by Justman10000 2 years ago.

  • rafalplens
    2 years ago

    Actually, you can delete both nginx-lets-encrypt and nginx-proxy and add this entry to misago service:

    ports:
      - "3031:3031"
    

    Now you need to setup your proxy to:

    • Serve media directory under /media/ path
    • Serve static directory under /static/ path
    • Proxy rest of requests to localhost:3031
  • Justman10000remove_circle_outline
    44 posts
    2 years ago

    How? I have this:

    <VirtualHost *:80>
        ServerName ADRESS
    
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
    
        RewriteEngine on
        RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    </VirtualHost>
    
    <VirtualHost *:443>
        ServerName ADRESS
    
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
    
        SSLEngine On
        SSLCertificateFile    /etc/letsencrypt/live/ADRESS/cert.pem
        SSLCertificateKeyFile /etc/letsencrypt/live/ADRESS/privkey.pem
        SSLCertificateChainFile /etc/letsencrypt/live/ADRESS/fullchain.pem
    
        ProxyPass / http://127.0.0.1:3031/
        ProxyPassReverse / http://127.0.0.1:3031/
    </VirtualHost>
    
  • rafalplens
    2 years ago

    Please stop tagging me.

    I don’t know what you are supposed to do next with that config, I am not fimiliar with Apache.

    If you are trying to do custom setup, you should have knowledge of technologies you are going to use. Maybe other user on this forum will have a knowledge of Apache and will be able to help?

  • Justman10000remove_circle_outline
    44 posts
    2 years ago

    Well, Misago itself can't be reached on port 3031 either

  • Justman10000remove_circle_outline
    44 posts
    2 years ago

    Or rather... The connection is always interrupted

  • Justman10000remove_circle_outline
    44 posts
    2 years ago

    @rafalp

    I'd like to refrain from pinging you, but... Where are you? It always says you're online

  • rafalplens
    2 years ago

    @Justman10000 this is final warning. You either understand that this is an open source software and I am only helping people out of good will and I am unable to spend time helping people researching their custom setups, or we can part ways.

  • Justman10000remove_circle_outline
    44 posts
    2 years ago

    You told me that, so surely you know why Misago doesn't work?

  • rafalplens
    2 years ago

    If its Misago thats not working, can you show an error from it?

  • Justman10000remove_circle_outline
    44 posts
    2 years ago

    That's the strange thing, no errors are logged

  • rafalplens
    2 years ago

    What is not working then? Is misago docker not starting?

  • Justman10000remove_circle_outline
    44 posts
    2 years ago

    The Docker container is active, but when I call the URL, this comes up:

    grafik.png

    grafik.png

    PNG, 26.1 KB, uploaded by Justman10000 2 years ago.

  • rafalplens
    2 years ago

    Have you verified that your configuration is correct and the problem is with Misago docker, eg. by running different app using your apache config?

  • tetrickypanorama_fish_eye
    155 posts
    2 years ago

    You might want to look at Install misago in a podman pod under linux which uses the misago container image.

    While the instructions are for podman, it is an approach that is equally applicable in docker, or k8s.

    This is not an officially supported method, and is provided on a best effort basis.

    As is the misago official docker deployment.

    Support might be politely asked for, but should not be demanded, nor expected.

  • Justman10000remove_circle_outline
    44 posts
    2 years ago

    I ventured deeper into the system! The only log entry that repeats when I try to call Misato is this one:

    invalid request block size: 21573 (max 4096)...skip

Search
  • Enter search query (at least 3 characters).

Your options