Browse Source

set ip to bind in reverse proxy http configuration

Because we are using openwrt and we would like to mantain LUCI running
on it's interface we can't bind on 0.0.0.0. or 127.0.0.1 hence we must
listen on a specific ip. This will set the public ip from the group
vars to be the one where we listen
master
Edoardo Putti 8 years ago
parent
commit
29aba60483
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      group_vars/all.yaml.example
  2. +1
    -1
      roles/reverse_proxy/templates/http.j2

+ 2
- 0
group_vars/all.yaml.example View File

@ -3,3 +3,5 @@
ext_gateway: "" ext_gateway: ""
# Put here the public key of the users CA. # Put here the public key of the users CA.
user_ca_key: "" user_ca_key: ""
# Put here the public ip for your organisation
public_ip: 0.0.0.0

+ 1
- 1
roles/reverse_proxy/templates/http.j2 View File

@ -1,5 +1,5 @@
server { server {
listen 80;
listen {{ public_ip }}:80;
server_name {{ hostname }}.lilik.it www.{{ hostname }}.lilik.it; server_name {{ hostname }}.lilik.it www.{{ hostname }}.lilik.it;


Loading…
Cancel
Save