Skip to content
Discussion options

You must be logged in to vote

Here’s my NGINX setup (very similar to what @dR3b and @bhouse-nexthop shared).

I’m assuming SSL (wildcard cert) is terminated on NGINX for all services:

ssl_certificate /etc/nginx/fullchain.crt;
ssl_certificate_key /etc/nginx/privatekey.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers <your_preferred_ciphers>;
server {
    listen 80 default_server;
    listen [::]:80 default_server;
    server_name _;
    return 301 https://$host$request_uri;
}

For small environments (around 10~30 concurrent SysVMs), you can create a host-to-IP mapping that includes the environment name (dev, test, stage, poc, hotfix, etc.)

map $host $backend_ip {
    10-10-1-200.<environment…

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@daviftorres
Comment options

@dR3b
Comment options

@TadiosAbebe
Comment options

Comment options

You must be logged in to vote
2 replies
@dR3b
Comment options

@weizhouapache
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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