galaxy-caddy.reverse/README.md

55 lines
1.4 KiB
Markdown
Raw Normal View History

2019-02-01 15:11:31 +00:00
galaxy-caddy.reverse
====================
Push a reverse caddy config file
Requirements
------------
2019-07-01 13:35:48 +00:00
Caddy webserver up and running
2019-02-01 15:11:31 +00:00
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
2019-02-17 16:45:02 +00:00
- rootws: yes/no activate websocket in the / path
2019-02-01 16:45:14 +00:00
- websocket_path: path to websocket (optional)
2019-07-01 20:14:16 +00:00
- websocket_location: reverse destination point for websocket config
2019-02-01 16:45:14 +00:00
- websocket_port: websocket port to redirect to
2019-07-01 20:15:24 +00:00
- websocket: yes/no, enable websocket block in config file
2019-07-01 20:15:44 +00:00
- 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
2019-02-01 15:11:31 +00:00
- 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
---------
2019-07-01 13:35:48 +00:00
Needs galaxy-vagrant to run tests
2019-02-01 15:11:31 +00:00
Ensure galaxy-vagrant is up
2019-02-01 16:45:01 +00:00
ansible-playbook -i tests/inventory tests/test.yml