Categories
docker

Docker CentOS 7 container with Systemd, Perl, and Mojolicious

Docker image for CentOS 7 with Systemd, Perl, and a sample Mojolicious app.

Ready to use out of the box.

Builds and updates are at https://github.com/bislink/CentOS7-Systemd-Mojolicious

docker run -it a2zdotblue/c7-systed-perl-mojo-02 /bin/bash

[root@ae9b9ef049c0 app]# ./perlmojo/script/perlmojo get /

A big surprise for me: This container has been downloaded more than 7000 times from Docker Hub since 2018!

If you are one of those who downloaded, would you please drop a thank you on this blog?

https://www.a1z.us/blog/2018/08/16/centos-7-docker-container-with-perl-mojolicious/ redirects here

Categories
Uncategorized

Nginx on custom ports

This configuration is actual one on server/machine, hop, on my network. And it is live.

How to use custom ports on NGINX?

Add all IPs:

server { 
....
listen 5085 default_server http2;
listen [::]:5086 default_server http2 ssl;
listen 192.*:5086 http2 ssl;
listen [2600:1700:a*:8*:2*:b*:f*:f*]:5086 http2 ssl;
server_name hop.a1z.us www.hop.a1z.us;
....
}

server {
....
server_name nginx.hop.a1z.us www.nginx.hop.a1z.us;
listen 5087;
listen 192.*:5087;
listen [*]:5087;
....
listen 192.*:5088 ssl http2;
listen [*]:5088 ssl http2;
listen [::]:5088 http2 ssl;
....
}

Did not work until I added all the IPs including local and ip6!