diff --git a/ansible/roles/forc_api/templates/nginx.conf.j2 b/ansible/roles/forc_api/templates/nginx.conf.j2 index 26f6138..559cba7 100644 --- a/ansible/roles/forc_api/templates/nginx.conf.j2 +++ b/ansible/roles/forc_api/templates/nginx.conf.j2 @@ -86,7 +86,7 @@ http { } {% else %} server { - listen {{ FORC_LOCAL_NETWORK }}:{{ FORC_SERVICE_PORT }}; + listen {{ FORC_LOCAL_IP }}:{{ FORC_SERVICE_PORT }}; location / { proxy_pass http://unix:/var/run/forc.sock; } diff --git a/ansible/roles/forc_api/vars/main.yml b/ansible/roles/forc_api/vars/main.yml index a51d4c1..7ed8fc9 100644 --- a/ansible/roles/forc_api/vars/main.yml +++ b/ansible/roles/forc_api/vars/main.yml @@ -33,8 +33,8 @@ FORC_SERVICE_PORT: 5000 # If Forc Service will use HTTPs -- if not FORC_LOCAL_NETWORK must be provided FORC_SERVICE_USE_HTTPS: true -#IF Forc Service does not use https needs to provided to allow requests from this specific network -FORC_LOCAL_NETWORK: "" +#IF Forc Service does not use https needs to provided to allow requests only for the local reachable ip +FORC_LOCAL_IP: "" # Set this to no if you don't use certbot for autogenerating ssl certs. CERTBOT_USED: "yes"