In Step 8 of the "Create your Droplet" section of https://docs.opendatakit.org/aggregate-digital-ocean you are supposed to enter the domain name (mindotestcollection.chickenkiller.com
) in the "Choose a hostname section". Do you remember doing that?
If you run cat /root/aggregate-config.json
, your output should be: (click the triangle)
/root/aggregate-config.json
{
"home": "/root",
"jdbc": {
"host": "127.0.0.1",
"port": 5432,
"db": "aggregate",
"schema": "aggregate",
"user": "myuser",
"password": "mypassword"
},
"security": {
"hostname": "sandbox.aggregate.opendatakit.org",
"forceHttpsLinks": true,
"port": 80,
"securePort": 443,
"checkHostnames": false
},
"tomcat": {
"uid": "tomcat8",
"gid": "tomcat8",
"webappsPath": "/var/lib/tomcat8/webapps"
}
}
If you run cat /etc/nginx/sites-enabled/aggregate
, it should be:
/etc/nginx/sites-enabled/aggregate
server {
client_max_body_size 100m;
server_name sandbox.aggregate.opendatakit.org;
location / {
proxy_pass http://127.0.0.1:8080;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/sandbox.aggregate.opendatakit.org/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/sandbox.aggregate.opendatakit.org/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = sandbox.aggregate.opendatakit.org) {
return 301 https://$host$request_uri;
} # managed by Certbot
server_name sandbox.aggregate.opendatakit.org;
listen 80;
return 404; # managed by Certbot
}