Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
453409aa
Commit
453409aa
authored
Oct 20, 2020
by
Robert Czechowski
Browse files
Add logo to README.md
parent
e9ae1898
Pipeline
#880
passed with stages
in 23 minutes
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
453409aa
# The Medal Contest Platform
# The Medal Contest Platform

[

](https://crates.io/crates/medal)
[

](https://jim.test.bwinf.de/doc/medal/)
...
...
@@ -52,15 +52,15 @@ The `config.json` configures the plattform (see src/config.rs).
Needs
`rustc`
and
`cargo`
1.40 (stable) or higher.
Rust can be obtained here: https://rustup.rs/
Rust can be obtained here: https://rustup.rs/
Running
Running
```
make
```
compiles and runs a debug-/test-server.
For production use, a release binary should be compiled and served behind a reverse proxy (nginx, apache, …).
For production use, a release binary should be compiled and served behind a reverse proxy (nginx, apache, …).
```
make release
```
...
...
@@ -81,7 +81,7 @@ upstream medal {
server {
# Other server settings here
location ~* \.(yaml)$ {
deny all;
}
...
...
@@ -92,7 +92,7 @@ server {
location /tasks {
add_header Cache-Control "public, max-age=604800";
}
}
location / {
proxy_pass http://medal;
...
...
@@ -105,13 +105,13 @@ The following configuration can be used for an Apache 2.4 webserver:
ServerSignature Off
ProxyPreserveHost On
AllowEncodedSlashes NoDecode
ProxyPass /static/ !
ProxyPass /tasks/ !
ProxyPass /favicon.ico !
ProxyPass / http://[::1]:8080/
ProxyPassReverse / http://[::1]:8080/
Alias "/tasks/" "/path/to/medal/tasks/"
Alias "/static/" "/path/to/medal/static/"
Alias "/favicon.ico" "/path/to/medal/static/images/favicon.png"
...
...
@@ -119,7 +119,7 @@ The following configuration can be used for an Apache 2.4 webserver:
<filesMatch "\.(css|jpe?g|png|gif|js|ico)$">
Header set Cache-Control "max-age=604800, public"
</filesMatch>
<FilesMatch "\.yaml$">
Deny from all
</FilesMatch>
...
...
@@ -127,7 +127,7 @@ The following configuration can be used for an Apache 2.4 webserver:
<Directory "/path/to/medal/static/">
Require all granted
</Directory>
<Directory "/path/to/medal/tasks/">
Require all granted
</Directory>
...
...
@@ -139,7 +139,7 @@ The following configuration can be used for an Apache 2.4 webserver:
Please format your code with
`rustfmt`
and check it for warnings with
`clippy`
.
You can install those with
You can install those with
```
rustup component add rustfmt --toolchain nightly
rustup component add clippy
...
...
static/images/medal_logo_small.png
0 → 100644
View file @
453409aa
14.5 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment