r/web/hlc: Configure formsubmit
Tabitha's Hatch Learning Center site has two user submission forms: one for signing in/out students for class, and another for parents to register new students for the program. These are handled by *formsubmit* and store data in CSV spreadsheets.btop
parent
632e1dd906
commit
1b7a8885b8
|
@ -57,6 +57,10 @@
|
||||||
Header always set \
|
Header always set \
|
||||||
Strict-Transport-Security "max-age=63072000; includeSubDomains"
|
Strict-Transport-Security "max-age=63072000; includeSubDomains"
|
||||||
|
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteRule /submit/attendance http://127.0.0.1:8000/hlc-attendance [P]
|
||||||
|
RewriteRule /submit/signup http://127.0.0.1:8000/hlc-signup [P]
|
||||||
|
|
||||||
DocumentRoot /srv/www/hatchlearningcenter.org/htdocs
|
DocumentRoot /srv/www/hatchlearningcenter.org/htdocs
|
||||||
<Directory /srv/www/hatchlearningcenter.org/htdocs>
|
<Directory /srv/www/hatchlearningcenter.org/htdocs>
|
||||||
Require all granted
|
Require all granted
|
||||||
|
|
|
@ -49,3 +49,29 @@
|
||||||
notify: reload httpd
|
notify: reload httpd
|
||||||
tags:
|
tags:
|
||||||
- apache-config
|
- apache-config
|
||||||
|
|
||||||
|
- name: ensure hatchlearningcenter.org data directory exists
|
||||||
|
file:
|
||||||
|
path: /srv/www/hatchlearningcenter.org/data
|
||||||
|
mode: ug=rwx,o=
|
||||||
|
owner: webapp.hlc
|
||||||
|
group: apache
|
||||||
|
setype: httpd_sys_rw_content_t
|
||||||
|
state: directory
|
||||||
|
tags:
|
||||||
|
- datadir
|
||||||
|
|
||||||
|
- name: ensure formsubmit is configured hatchlearningcenter.org attendance
|
||||||
|
copy:
|
||||||
|
content: '{{ hlc_formsubmit_attendance|to_nice_yaml(indent=2) }}'
|
||||||
|
dest: /etc/formsubmit/hlc-attendance.yml
|
||||||
|
mode: u=rw,go=r
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
- name: ensure formsubmit is configured hatchlearningcenter.org signup
|
||||||
|
copy:
|
||||||
|
content: '{{ hlc_formsubmit_signup|to_nice_yaml(indent=2) }}'
|
||||||
|
dest: /etc/formsubmit/hlc-signup.yml
|
||||||
|
mode: u=rw,go=r
|
||||||
|
tags:
|
||||||
|
- config
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
hlc_formsubmit_attendance:
|
||||||
|
csvfile: /srv/www/hatchlearningcenter.org/data/attendance.csv
|
||||||
|
date_field: date
|
||||||
|
time_field: time
|
||||||
|
hlc_formsubmit_signup:
|
||||||
|
csvfile: /srv/www/hatchlearningcenter.org/data/signup.csv
|
||||||
|
date_field: date
|
Loading…
Reference in New Issue