Giter VIP home page Giter VIP logo

Comments (5)

tombroeckers avatar tombroeckers commented on August 19, 2024

I've tested the installation with a ssh tunnel and everything is working fine, when I open http://localhost:4000 on my machine.

So it must be the combination with nginx and mailman...?

from mailman.

klausschreiber avatar klausschreiber commented on August 19, 2024

I have the same problem using mailman with docker and nginx but haven't tested it with ssh Tunnel.

from mailman.

 avatar commented on August 19, 2024

If it helps anyone, here are my Docker and nginx settings:

Subdomain:

docker run -d -p 4000:4000 --net="host" --env-file /etc/docker/envs/mailman.env --restart=always --name mailman phiilu/mailman
server {

  listen 443 ssl http2;
  listen [::]:443 ssl http2;
  server_name subdomain.domain.tld;

  client_max_body_size 100M;
  fastcgi_buffers 64 4K;

  location / {
    proxy_pass http://localhost:4000;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
  }

  access_log /var/log/nginx/domain.tld/subdomain.domain.tld/access.log;
  error_log /var/log/nginx/domain.tld/subdomain.domain.tld/error.log;

}

Note:
Since I have a wildcard certificate, the SSL settings are included elsewhere. If necessary, you'll need to include your SSL certificates above.

Subfolder:

Change location / { to location /nameOfSubfolder { within your nginx configuration and update the value of MAILMAN_BASENAME from / to /nameOfSubfolder in your env file as well.

from mailman.

klausschreiber avatar klausschreiber commented on August 19, 2024

thanks for your help. I had an error in my env file. I changed MAILMAN_BASENAME from / to /nameOfSubfolder now. But the page stays blank. After changing the env file, I killed the docker container with docker kill ... , removed it with docker rm ... and started mailman again with command:
docker run -d -p 4000:4000 --net="host" --env-file .env --restart=always --name mailman phiilu/mailman

I looked into html source code now and found the following code:
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/manifest.json"><link rel="shortcut icon" href="/favicon.ico"><link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500"/><title>Mailman</title><link href="/static/css/main.b27653d9.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/static/js/main.af4f7287.js"></script></body></html>

I think, there is the error:
<link href="/static/css/main.b27653d9.css" rel="stylesheet"> should be
<link href="/mailman/static/css/main.b27653d9.css" rel="stylesheet">
Same with javascript file, manifest and favicon. But how can I change this?

Thanks,
Klaus

from mailman.

phiilu avatar phiilu commented on August 19, 2024

Sorry I have been really busy.

I updated the Docker documentation.
You can now us a separate Docker Image tagged :subfolder to deploy Mailman under a subfolder.
After you run this Docker image, make sure to test in a fresh Incognito window to resolve cache issues. Hope this closes this issue now.

from mailman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.