Skip to content

mshunshin/openclinica_caddy-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Adding a Caddy reverse SSL to OpenClinica

0 Previously...

You will have started an openclinica server (mshunshin/openclinica-docker) and associated postgres server and put them on a docker network called trial-net

You might also have started a RANDI sever (mshunshin/randi-docker) and associated postgres server to do your randomisation, and put them on the same network - trial-net

1 Make a volume for the certificates

docker volume create caddycert

2 Clone the repository

git clone https://github.com/mshunshin/openclinica_caddy-docker.git
cd openclinica_caddy-docker

3 Change the config file

You will need to put in your own email address and site URL into the Caddy file.

First copy the template Caddyfile

cp ./caddy.config/Caddyfile.new ./caddy.config/Caddyfile

Then edit it

vi .caddy.config/Caddyfile

(common) {
  log / stdout "{combined}"
  errors stderr
  tls your@email.com
}

replace_this_with_your_domain.com {
  import common
  proxy /OpenClinica oc:8080 {
    transparent
  }
  proxy /randi randi:8080 {
    transparent
  }
}

4 Build it

docker build -t occaddy .

5 Run it

Put it on the correct network

docker run -d -p 80:80 -p 443:443 --name occaddy -v caddycert:/root/.caddy --network trial-net occaddy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published