HuPI: Difference between revisions

From Wildsong
Jump to navigationJump to search
Brian Wilson (talk | contribs)
mNo edit summary
Brian Wilson (talk | contribs)
m Pulled changes from the old site
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
2015-Jan-25
2022-November-11


Moved IHPVA.org to Tektonic.net to support mailing list volume
We're moving from shared hosting at Bluehost.com back to a VPS at Tektonic.net because it's now cheaper.
and dragged HuPI over at the same time.


Moved back to my own server at CDS to save money.


2017-Jan-01
== Web service ==


Currently everything is running in a virtual machine.
For HuPI it is in /home/hupi. The web pages are all in /home/hupi/content/.
This was the way to go a few years ago, now I have just the one
VM running there so it's just as much work as running a separate
server.


I am considering what it would take to use [[Docker]] containers instead.
It's running in a Docker container called "hupi", using the Caddy webserver.
The big advantage for me would be that Dockers are very portable,
I can copy them and run them anywhere. The only thing tying me to one machine is the mapping between DNS and a fixed IP address.
(Which is true with the virtual machine.)


I chose to try QEMU/KVM to support the virtual machines on [[Dart]] and I want to get rid of that,
There is another Docker container called "caddy-proxy" that handles the certificates for the HTTPS encryption. It's also running Caddy and it functions as a reverse proxy.
it's the only place I ended up using it. I want to use VirtualBox when I need VM's, it's better. So
even if I don't use Docker I want to get rid of QEMU.


== Services required ==


* Web service
== Email ==
* Email
* Mailman


=== Web service ===
These are old notes, it's not set up yet.


Strictly plain vanilla HTTP server.
Using postfix as the MTA.
Needs CGI support for Mailman.  


=== Email ===
Mailing lists http://hupi.org/cgi-bin/mailman/listinfo


Using postfix
The only list left is "vph", I shut all the others down over a year ago.
 
It should still be possible to connect to the postfix/mailman container via exec to run mailman commands, in
fact you could run the commands directly (no shell.) I should be able to make aliases for that.


=== Mailman ===
=== Mailman ===


Mailing lists http://hupi.org/cgi-bin/mailman/listinfo
docker pull macropin/mailman


The only list left is "vph", I shut all the others down over a year ago.
I can direct traffic from the router to any particular port
 
so I can run SMTP on port 2525 and send port 25 traffic to it.
== Docker set up ==
 
I see this running in two docker containers,
one for nginx and one for mailman/postfix.


Persistent file storage would be a volume on the host.
docker run --rm -ti --name mailman \
I can't see any need for any databases at akk.
  -p 2525:25 -p 8025:80 \
  -e MAILMAN_URLHOST=list.hupi.org \
  -e MAILMAN_EMAILHOST=hupi.org \
  -e MAILMAN_ADMINPASS=yersecretpassword \
  macropin/mailman


Theo would be able to access the storage area by connecting to Dart,
You should be able to connect to the 2 services, HTTP and SMTP.
and he already has credentials to do that. It should look no different.


It should still be possible to connect to the postfix/mailman container via exec to run mailman commands, in
telnet localhost 8025
fact you could run the commmands directly (no shell.) I should be able to make aliases for that.
telnet localhost 2525

Latest revision as of 01:30, 14 November 2022

2022-November-11

We're moving from shared hosting at Bluehost.com back to a VPS at Tektonic.net because it's now cheaper.


Web service

For HuPI it is in /home/hupi. The web pages are all in /home/hupi/content/.

It's running in a Docker container called "hupi", using the Caddy webserver.

There is another Docker container called "caddy-proxy" that handles the certificates for the HTTPS encryption. It's also running Caddy and it functions as a reverse proxy.


Email

These are old notes, it's not set up yet.

Using postfix as the MTA.

Mailing lists http://hupi.org/cgi-bin/mailman/listinfo

The only list left is "vph", I shut all the others down over a year ago.

It should still be possible to connect to the postfix/mailman container via exec to run mailman commands, in fact you could run the commands directly (no shell.) I should be able to make aliases for that.

Mailman

docker pull macropin/mailman

I can direct traffic from the router to any particular port so I can run SMTP on port 2525 and send port 25 traffic to it.

docker run --rm -ti --name mailman \
 -p 2525:25 -p 8025:80 \
 -e MAILMAN_URLHOST=list.hupi.org \
 -e MAILMAN_EMAILHOST=hupi.org \
 -e [email protected] \
 -e MAILMAN_ADMINPASS=yersecretpassword \
 macropin/mailman

You should be able to connect to the 2 services, HTTP and SMTP.

telnet localhost 8025
telnet localhost 2525