Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ODK Aggregate docker
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
docker
ODK Aggregate docker
Commits
5f2ff4cc
Verified
Commit
5f2ff4cc
authored
May 11, 2020
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Apache2 configuration
parent
7565e5cc
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Readme.md
+9
-2
9 additions, 2 deletions
Readme.md
odk.conf
+12
-0
12 additions, 0 deletions
odk.conf
with
21 additions
and
2 deletions
Readme.md
+
9
−
2
View file @
5f2ff4cc
...
@@ -15,9 +15,16 @@ This is a docker-compose setup for [ODK](https://getodk.org)
...
@@ -15,9 +15,16 @@ This is a docker-compose setup for [ODK](https://getodk.org)
+
Most defaults are set according to .env
+
Most defaults are set according to .env
4.
Get the sql
`docker-compose exec front cat webapps/ODK\ Aggregate/create_db_and_user.sql`
4.
Get the sql
`docker-compose exec front cat webapps/ODK\ Aggregate/create_db_and_user.sql`
5.
Run
`docker-compose exec db psql -U aggregate`
and paste SQL from step 4
5.
Run
`docker-compose exec db psql -U aggregate`
and paste SQL from step 4
6.
Run
`docker-compose exec front mv webapps/ODK\ Aggregate/ODKAggregate.war webapps/`
6.
Run
`docker-compose exec front mv webapps/ODK\ Aggregate/ODKAggregate.war webapps/
ROOT.war
`
7.
Restart the docker-compose
`docker-compose down; docker-compose up -d`
7.
Restart the docker-compose
`docker-compose down; docker-compose up -d`
At this point everything should be configured, go to
`http://localhost:8080/
ODKAggregate
`
and finish installation process.
At this point everything should be configured, go to
`http://localhost:8080/`
and finish installation process.
Default password is
`aggregate`
, username is the one you set in step 2.
Default password is
`aggregate`
, username is the one you set in step 2.
## Use it behing an apache2 proxy
1.
Follow install instruction using a Fully Qualified Domain Name in step 2 instead of
`localhost`
2.
Copy the odk.conf file to
`/etc/apache2/sites-available/odk.conf`
and adapt it
3.
`a2ensite odk.conf && apache2ctl graceful`
3.
**Recommended**
switch to HTTPS using
[
certbot
](
https://certbot.eff.org/
)
This diff is collapsed.
Click to expand it.
odk.conf
0 → 100644
+
12
−
0
View file @
5f2ff4cc
<
VirtualHost
*:
80
>
ServerName
<
FQDN
>
ProxyRequests
On
ProxyPreserveHost
on
ProxyPass
/
http
://
127
.
0
.
0
.
1
:
8080
/
ProxyPassReverse
/
http
://
127
.
0
.
0
.
1
:
8080
/
CustomLog
${
APACHE_LOG_DIR
}/<
FQDN
>.
access
.
log
combined
ErrorLog
${
APACHE_LOG_DIR
}/<
FQDN
>.
error
.
log
</
VirtualHost
>
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