Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
medal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bwinf
medal
Commits
33b9b943
Commit
33b9b943
authored
6 years ago
by
Robert Czechowski
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md: Add reverse proxy config for Apache
parent
ebb89c17
Loading
Loading
No related merge requests found
Pipeline
#139
passed
6 years ago
Stage: test
Stage: build
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+35
-0
35 additions, 0 deletions
README.md
with
35 additions
and
0 deletions
README.md
+
35
−
0
View file @
33b9b943
...
...
@@ -37,6 +37,41 @@ compiles a release build with openssl statically linked for distribution.
The directories
`tasks/`
and
`static/`
can (and for throughput-purposes should) be served by the reverse proxy directly.
## Deploy
It is recommended to run the platform behind a reverse proxy, that is serving static files directly.
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"
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico)$">
Header set Cache-Control "max-age=604800, public"
</filesMatch>
<Directory "/path/to/medal/static/">
Require all granted
</Directory>
<Directory "/path/to/medal/tasks/">
Require all granted
</Directory>
```
## Contributing
Please format your code with
`rustfmt`
and check it for warnings with
`clippy`
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment