Playbooks to a new Lilik
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
382 B

  1. server {
  2. listen 80;
  3. server_name {{ hostname }}.lilik.it www.{{ hostname }}.lilik.it;
  4. proxy_set_header X-Real-IP $remote_addr;
  5. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  6. proxy_set_header Host $host;
  7. proxy_set_header X-NginX-Proxy true;
  8. location / {
  9. proxy_pass http://{{ hostvars[ansible_hostname]['ansible_host'] }};
  10. }
  11. }