Push caddy reverse config file
Find a file
2020-05-21 12:04:20 +02:00
defaults Update to caddy2 2020-05-19 21:28:43 +02:00
handlers Bootstrap caddy reverse role 2019-02-01 16:11:31 +01:00
meta Update to caddy2 2020-05-19 21:28:43 +02:00
tasks Fix: Harmonize files by adding new line if nedded 2020-04-03 11:43:28 +02:00
templates Add www redirect to caddy reverse 2020-05-21 12:04:20 +02:00
tests Fix: Harmonize files by adding new line if nedded 2020-04-03 11:43:28 +02:00
LICENSE Update LICENSE to 2020 2020-05-19 21:27:59 +02:00
README.md Update to caddy2 2020-05-19 21:28:43 +02:00

galaxy-caddy.reverse

Push a reverse caddy config file

Requirements

Caddy webserver up and running

Role Variables

  • caddy_home: caddy home directory
  • caddy_logs: caddy log directory
  • caddy_conf: caddy config directory
  • caddy_confd: caddy conf.d directory
  • caddy_www: /var/www/caddy
  • reverse_location: reverse destination point
  • reverse_port: port to redirect to
  • websocket_path: path to websocket (optional)
  • websocket_location: reverse destination point for websocket config
  • websocket_port: websocket port to redirect to
  • websocket: yes/no, enable websocket block in config file
  • proxy_rule: yes/no, enable specific proxy rule setup
  • proxy_location: reverse destination point
  • proxy_path: path to route proxy to
  • proxy_port: proxy port to redirect to
  • vhost_name: name of the vhost

Dependencies

  • galaxy-caddy

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

- hosts: servers
  roles:
     - { role: galaxy-caddy.reverse, vhostname: none, reverse_location: localhost, reverse_port: 4242 }

Run tests

Needs galaxy-vagrant to run tests

Ensure galaxy-vagrant is up

ansible-playbook -i tests/inventory tests/test.yml