websites/d…and…t: Configure formsubmit
To handle the RSVP form on *dustinandtabitha.com*, we are going to use *formsubmit*. It runs on the same machine that hosts the website, so there's no dealing with CORS. The */submit/rsvp* path, which is proxied to the backend, is the RSVP form's target.
This commit is contained in:
@@ -35,3 +35,22 @@
|
||||
dest: /etc/httpd/conf.d/dustinandtabitha.conf
|
||||
mode: '0644'
|
||||
notify: reload httpd
|
||||
|
||||
- name: ensure dustinandtabitha.com data directory exists
|
||||
file:
|
||||
path: /srv/www/dustinandtabitha/data
|
||||
mode: ug=rwx,o=
|
||||
owner: webapp.dustinandtabitha
|
||||
group: apache
|
||||
setype: httpd_sys_rw_content_t
|
||||
state: directory
|
||||
tags:
|
||||
- datadir
|
||||
|
||||
- name: ensure formsubmit is configured for dustinandtabitha.com
|
||||
copy:
|
||||
content: '{{ dustinandtabitha_formsubmit|to_nice_yaml(indent=2) }}'
|
||||
dest: /etc/formsubmit/weddingrsvp.yml
|
||||
mode: u=rw,go=r
|
||||
tags:
|
||||
- config
|
||||
|
||||
Reference in New Issue
Block a user