Skip to content

Commit d36dec3

Browse files
committed
move settings from site.conf to webwork2.mojolicious.yml
1 parent cf7c51a commit d36dec3

20 files changed

+1018
-338
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ COPY docker-config/docker-entrypoint.sh /usr/local/bin/
244244

245245
ENTRYPOINT ["docker-entrypoint.sh"]
246246

247-
# Add enviroment variables to control some things during container startup
247+
# Add environment variables to control some things during container startup
248248
ENV SSL=0 \
249249
PAPERSIZE=letter \
250250
SYSTEM_TIMEZONE=UTC \

DockerfileStage2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ COPY docker-config/docker-entrypoint.sh /usr/local/bin/
106106

107107
ENTRYPOINT ["docker-entrypoint.sh"]
108108

109-
# Add enviroment variables to control some things during container startup
109+
# Add environment variables to control some things during container startup
110110
ENV SSL=0 \
111111
PAPERSIZE=letter \
112112
SYSTEM_TIMEZONE=UTC \

conf/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ are made to `.dist` files, then the modifications will be lost or cause conflict
99

1010
Basic webwork2 configuration files.
1111

12-
- `site.conf.dist` should be copied to `site.conf`, and contains global variables required for basic server
13-
configuration. This file is read first in the initialization sequence.
1412
- `defaults.config` contains initial settings for many customizable options in WeBWorK. This file is read second in the
1513
initialization sequence. **This file should not be changed**
1614
- `localOverrides.conf.dist` should be copied to `localOverrides.conf`. `localOverrides.conf` will be read after the
@@ -29,8 +27,7 @@ Configuration extension files.
2927

3028
Server configuration files.
3129

32-
- `webwork2.mojolicious.dist.yml` contains the webwork2 Mojolicious app configuration settings. Copy this file to
33-
`webwork2.mojolicious.yml` if you need to change those settings. You usually will need to do this.
30+
- `webwork2.mojolicious.dist.yml` contains the webwork2 Mojolicious app configuration settings.
3431
- `webwork2.dist.service` is a systemd configuration file for linux systems that serves the webwork2 app via the
3532
Mojolicious hypnotoad server. If you need to change it, then copy it to `webwork2.service`.
3633
- `webwork2-job-queue.dist.service` is a systemd configuration file for linux systems that runs the webwork2 job queue
@@ -42,8 +39,9 @@ Server configuration files.
4239

4340
## Initial configururation of webwork2
4441

45-
- Copy `site.conf.dist` to `site.conf` and `localOverrides.conf.dist` to `localOverrides.conf`, and adjust the variables
46-
in `site.conf` as needed. In particular you will need to set `$server_root_url` to the server name, and set
42+
- Copy `webwork2.mojolicious.dist.yml` to `webwork2.mojolicious.yml` and change appropriate settings.
43+
- Copy `localOverrides.conf.dist` to `localOverrides.conf`, and adjust the variables
44+
as needed. In particular you will need to set `$server_root_url` to the server name, and set
4745
`$database_password` to the password for the database.
4846
- Adjust the variables in `localOverrides.conf` to customize your server for your needs.
4947
- Copy any of the other `.dist` files and adjust the variables in them as needed. Note that those files will need to be

conf/defaults.config

Lines changed: 25 additions & 272 deletions
Large diffs are not rendered by default.

conf/webwork2.apache2.4.dist.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#ScriptAliasMatch /webwork2_course_files/([^/]*)/show-source.cgi/(.*) /opt/webwork/courses/$1/html/show-source.cgi/$2
1515
#ProxyPassMatch /webwork2_course_files/([^/]*)/show-source.cgi/(.*) !
1616

17-
# Note that if $webwork_url in site.conf is changed, then /webwork2
17+
# Note that if $webwork_url in webwork2.mojolicious.yml is changed, then /webwork2
1818
# should be changed below to match.
1919
<Proxy /webwork2/*>
2020
Require all granted
@@ -32,23 +32,23 @@ ProxyPassReverse /webwork2/* http://localhost:8080/webwork2/
3232
RequestHeader set X-Forwarded-Proto "https"
3333
</Location>
3434

35-
# Note that if $webwork_htdocs_url in site.conf is changed, then /webwork2_files
35+
# Note that if $webwork_htdocs_url in webwork2.mojolicious.yml is changed, then /webwork2_files
3636
# should be changed below to match.
3737
<Proxy /webwork2_files/*>
3838
Require all granted
3939
</Proxy>
4040
ProxyRequests Off
4141
ProxyPass /webwork2_files http://localhost:8080/webwork2_files keepalive=On
4242

43-
# Note that if $pg_htdocs_url in site.conf is changed, then /pg_files
43+
# Note that if $pg_htdocs_url in webwork2.mojolicious.yml is changed, then /pg_files
4444
# should be changed below to match.
4545
<Proxy /pg_files/*>
4646
Require all granted
4747
</Proxy>
4848
ProxyRequests Off
4949
ProxyPass /pg_files http://localhost:8080/pg_files keepalive=On
5050

51-
# Note that if $webwork_courses_url in site.conf is changed, then /pg_files
51+
# Note that if $webwork_courses_url in webwork2.mojolicious.yml is changed, then /pg_files
5252
# should be changed below to match.
5353
<Proxy /webwork2_course_files/*>
5454
Require all granted

0 commit comments

Comments
 (0)