Comments (5)
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.
I have the same problem using mailman with docker and nginx but haven't tested it with ssh Tunnel.
from mailman.
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.
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.
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)
- several vmail admins HOT 1
- Login - Something went wrong HOT 2
- Client Ip log HOT 4
- zeigt keine Domains usw. an HOT 6
- Problems while installing HOT 1
- No Catchall ("Alias requires Username") HOT 2
- Login - Password
- MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. HOT 3
- Userlogin Alias Problem HOT 2
- Password integrety problem HOT 1
- Problem with Database HOT 4
- Non-standard port for database HOT 1
- Error: Cannot read 'data' of undefined
- Support of unix socket for access to mysql/mariadb database
- Using unix socket and nginx as reverse proxy to access web server
- Aliases with NULL for Source-Adress causes Mailman to stop working HOT 2
- Vorschlag für Änderung
- Docker Reagiert nicht mehr nach neustart
- External Database Support HOT 1
- Attach not working [win10]
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailman.