Push caddy reverse config file
Find a file
Wilfried OLLIVIER bb3bd074e5 Fix: typo
2019-07-01 22:14:16 +02:00
defaults Fix: typo 2019-07-01 22:14:16 +02:00
handlers Bootstrap caddy reverse role 2019-02-01 16:11:31 +01:00
meta Bootstrap caddy reverse role 2019-02-01 16:11:31 +01:00
tasks Fix: remplace . with _ 2019-02-15 13:42:57 +01:00
templates Add support for root websocket 2019-02-17 17:45:02 +01:00
tests Bootstrap caddy reverse role 2019-02-01 16:11:31 +01:00
LICENCE Bootstrap caddy reverse role 2019-02-01 16:11:31 +01:00
README.md Fix: typo 2019-07-01 22:14:16 +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
  • rootws: yes/no activate websocket in the / path
  • 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
  • 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