[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can Docker/Artanis run on a network server?

From: Nala Ginrut
Subject: Re: Can Docker/Artanis run on a network server?
Date: Tue, 30 Mar 2021 15:14:05 +0800
User-agent: mu4e 1.4.15; emacs 27.1

Hi Mortimer!

Mortimer Cladwell writes:

> Thanks Nala,
> setting   host.addr = localhost or <myhostname> in artanis.conf doesn't
> work. I am redirected to in both situations using Docker.
> Does this mean Docker is unusable on a LAN?
> And for cloud services like AWS - are there redirection mechanisms that
> work for

[Out of the topic]
I think the host.addr should be the domain name, and it should work if
you deploy it to the cloud. However, this is just one of the ways. My
preferred way is to set host.addr to false, and use Nginx reverse-proxy
on the cloud server.

> In page.scm:
> "So let's make it easier, GNU Artanis will always redirect to absolute
> URL for you."
> What is the "absolute URL"? The entry in host.addr? That is not
> happening for me with Docker.

Here is the doc:

If you use relative path, say "/page1", it'll be
"http://host.addr/page1";, this step is handled by Artanis inexplicitly.

So here's the issue, you set host.addr in Docker env with, but
the redirect-to will add to the URL automatically. However, the
host address inside Docker is different from the address of host
system. The redirect will fail.

To solve this issue, you may try these steps:
1. = (whatever domain name you like)
2. host.addr =
3. Set a static DNS for, say, /etc/hosts

If you want to host this site/app in a LAN, you may need to set internal
DNS, or if there're not many machines, you may set hosts for each

Please don't hesitate if there is better advice.

Best regards.

GNU Powered it
GPL Protected it
GOD Blessed it
HFG - NalaGinrut
Fingerprint F53B 4C56 95B5 E4D5 6093 4324 8469 6772 846A 0058

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]