@@ -19,6 +19,40 @@ git clone https://github.com/Southampton-RSG/physics-workload
1919Also copy the cut-down spreadsheets derived from the ` workload 2425.xlsx ` spreadsheet into the same directory as the code.
2020They aren't included in the repo as they contain personally identifiable data.
2121
22+ ### File Server
23+
24+ If using this on a machine serving multiple sites,
25+ you'll need to add the configuration file to your existing Nginx setup.
26+ Assign ownership of the directory to the ` physics-workload-staff ` group and add ` nginx ` to it:
27+ ``` bash
28+ $ sudo usermod -a -G physics-workload-staff nginx
29+ $ sudo chgrp -R voidorchestra-staff /var/www/physics-workload
30+ $ sudo chmod -R g+rw /var/www/physics-workload
31+ ```
32+
33+ Then, depending on your Linux distribution:
34+
35+ #### Debian/Ubuntu
36+ Copy or link ` nginx/physics-workload.conf ` to your ` /etc/nginx/sites-enabled/ ` directory, then restart Nginx:
37+ ``` bash
38+ $ ln -s /var/www/physics-workload/nginx/physics-workload.conf /etc/nginx/sites-enabled/
39+ $ sudo systemctl reload nginx
40+ $ sudo systemctl restart nginx
41+ ```
42+
43+ #### Fedora/RHEL
44+ Copy ` nginx/physics-workload.conf ` file to your ` /etc/nginx/conf.d ` directory.
45+ Then, flag the log directory as a log directory under SELinux,
46+ and the output directory as as HTML content directory too:
47+ ``` bash
48+ $ sudo cp /var/www/voidorchestra/nginx/physics-workload.conf /etc/nginx/conf.d/
49+ $ sudo semanage fcontext -a -t httpd_sys_content_t " /var/www/physics-workload/staticfiles(/.*)?"
50+ $ sudo restorecon -R -v /var/www/physics-workload/staticfiles
51+ $ sudo semanage fcontext -a -t httpd_log_t " /var/www/physics-workload/logs(/.*)?"
52+ $ sudo restorecon -R -v /var/www/physics-workload/logs/
53+ ```
54+
55+
2256## Running
2357
2458The tool is run using ` docker compose ` . Generally, it's best to do this in a ` screen ` session.
@@ -55,6 +89,8 @@ sudo docker compose build --no-cache
5589sudo docker compose up web
5690```
5791
92+
93+
5894# Extra
5995
6096> [ !NOTE]
0 commit comments