coughvid-web/86e41be94a08master
coughvid-web/
86e41be94a08master
/
/
README.md
README.md
Coughvid
Simple web application for the collection of sound records of cough from patients with Covid-19.
This website was created with hugo+syna. The source project for the static part of the web is the syna-epfl folder. Once compiled, this is the "public" folder, that has been updated in the following way:
- Add the cgi-bin folder for the ubuntu script.
- Add the js folder and the app, jquery and progressbar sources.
- Add the server SSL keys: key.pem and cert.pem
- Modify index.html to assign an id to the Record button, add the #progressBar and #thanks components, and the corresponding minor CSS tweaks. Also, include the required js files.
Deployment instructions on coughvid.epfl.ch
- All files and folders in the repository have to be copied to /var/www/html/ (except .git, of course).
- The upload.py cgi script has to be copied to /var/www/cgi-bin/, with execution permissions.
- Update upload.py to set DB_PATH = '/data/coughvid_records', and remove cgitb.
- The problems we found with SELinux so far were:
- Permission for running CGI scripts. Make sure that there is the appropriate rule in SELinux for the /var/www/cgi-bin/ folder, with the command: $ semanage fcontext --list | grep cgi-bin
- /var/www/cgi-bin(/.*)? all files system_u:object_r:httpd_sys_script_exec_t:s0
- If still not working, $ restorecon -Rv /var/www/**cgi**-bin/.
- Add a rule in SELinux to give write permissions in the database folder:
- $ semanage fcontext -a -t httpd_sys_rw_content_t "/data/coughvid_records(/.*)?"
- $ restorecon -Rv /data/coughvid_records/
- Permission for running CGI scripts. Make sure that there is the appropriate rule in SELinux for the /var/www/cgi-bin/ folder, with the command: $ semanage fcontext --list | grep cgi-bin
c4science · Help