Skip to content

Unable to self-host on Azure #32

Answered by slaby93
slaby93 asked this question in Q&A
Discussion options

You must be logged in to vote

I found an answer
I had to create my own image based on mailcarrier image.

Generally speaking I've added to NGINX new port 5555 which forces all traffic to port 443
On Azure Ingres, I'm targeting port 5555. All works like a charm.

Dockerfile:

FROM mailcarrier/mailcarrier:latest
EXPOSE 80
EXPOSE 443
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 5555

nginx.conf

user webuser webgroup;
worker_processes auto;
pid /run/nginx.pid;
daemon off;

events {
    worker_connections 768;
    # multi_accept on;
}

http {

    ##
    # Basic Settings
    ##

    sendfile on;
    tcp_nopush on;
    tcp_nodelay on;
    keepalive_timeout 65;
    types_hash_max_size 2048;
    server_tokens off;

    # server_…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by slaby93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant