faisitalia / OpenMed-PoC

PoC Version - The project stems from the experience of FAIS gained in Smart Ostomy Support with the aim of creating a platform that technologically supports the patient associations participating in the project.
1 stars 5 forks source link

Install OpenMED on AWS in CERT environment #57

Closed niclaus76 closed 2 years ago

niclaus76 commented 2 years ago

Use the https://openmed.cloud/ domain Install on AWS Cloud on the dedicated CERT VM.

Here's a draft of the openmed.json configuration file:

{
    "publicHostname": "ambulatorio.openmed.cloud",
    "publicPort": 443,
    "publicIp": "<this-VM-public-ip>",
    "mongodbUrl": "mongodb://<mongohost>:<your-mongo-password>@<your-mongo-host-name>:27017/<your-mongo-database-name>",
    "mailConfig": {
        "provider": "ergonet",
        "smtp": "smtp.ergonet.it",
        "port": "465",
        "username": "visite@openmed.cloud",
        "password": "<obscured-password>"
    },
    "sslCert": "/etc/letsencrypt/live/<your-host-name>/fullchain.pem",
    "sslKey": "/etc/letsencrypt/live/<your-hostname-name>/privkey.pem"
}

The dedicated AWS VM is still to be allocated & created

lucavenir commented 2 years ago

To proceed, it is still needed to:

  1. Confirm the host name (openmed.cloud?);
  2. Give the public IP address;
  3. Configure MongoDB on the VM;
  4. Configure and set an SSL certificate and key ([see this])(https://github.com/faisitalia/OpenMed/blob/main/PREREQ.md#provisioning-an-ssl-certificate)

The following is the INCOMPLETE json I managed to write until now.

{
    "publicHostname": "<HOSTNAME REQUIRED>",
    "publicPort": 443,
    "publicIp": "<PUBLIC IP REQUIRED>",
    "mongodbUrl": "mongodb://localhost:<MONGO PSW ??>@<MONGO HOST??>:27017/<your-mongo-database-name>",
    "mailConfig": {
        "provider": "ergonet",
        "smtp": "smtp.ergonet.it",
        "port": "465",
        "username": "visite@openmed.cloud",
        "password": "<OK WE GOT THAT BUT IT'S OBSCURED HERE>"
    },
    "sslCert": "/etc/letsencrypt/live/<your-host-name>/fullchain.pem",
    "sslKey": "/etc/letsencrypt/live/<your-hostname-name>/privkey.pem",
    "rtcMinPort": 15000,
    "rtcMaxPort": 24999
}
niclaus76 commented 2 years ago

Here are some info fot TEST VM: 1)

Configure server ports according to this schema: dev: https (publicPort) 4443 (instead of 1024), rtc da 45000 a 60000 cert: https (publicPort) 443 (instead of 1025), rtc from 15000 to 30000

On PROV VM the configuration is: prod: https (publicPort) 443, rtc from 15000 to 30000 1) the publicHostname is: ambulatorio.openmed.cloud 2) the publicIp is: 4) the digital certificate has to be created