Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion components/api-server/config/public-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ const WWW_PATH = '/www';
async function publicUrlToService (config) {
const isDnsLess = config.get('dnsLess:isActive');
const publicUrl = config.get('dnsLess:publicUrl');
if (isDnsLess && publicUrl != null) {
const customPublicUrl = !config.get('dnsLess:customPublicUrl');
if (customPublicUrl && isDnsLess && publicUrl != null) {
config.set('service', {
api: buildUrl(publicUrl, '/{username}/'),
register: buildUrl(publicUrl, path.join(REG_PATH, '/')),
Expand Down
4 changes: 2 additions & 2 deletions components/register/src/business/dataservers.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ function getHostings() {
hostings: {
hosting1: {
url: home,
name: 'Pryv.io',
description: 'Self hosted',
name: 'Switzerland',
description: 'Infomaniak',
available: true,
availableCore: publicUrl
}
Expand Down
2 changes: 2 additions & 0 deletions configs/api.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
hds:
defaultAuthUrl: https://healthdatasafe.github.io/app-web-auth3-hds/access/access.html
dnsLess:
publicUrl: http://localhost:3000/ # the "Public" URL to reach the service, you need to change this if you use a third party SSL service such as NGNIX.
http:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"api": "LOGS=info NODE_ENV=production ./components/api-server/bin/server --config ./configs/api.yml",
"apibackloop": "LOGS=info NODE_ENV=production ./components/api-server/bin/server --config ./configs/api-backloop.yml",
"database": "DEVELOPMENT=true scripts/start-mongo",
"mail": "cd service-mail ; ./bin/server",
"mail": "cd service-mail ; ./bin/server --config=../configs/mail-config.yml",
"pryv": "npm run database >> ./var-pryv/logs/mongodb.log & npm run mail >> ./var-pryv/logs/mail.log & npm run api",
"setup-dev-env": "scripts/setup-dev-env",
"test": "echo 'This project doesn’t use npm scripts – enter `just` for the available development commands\n' && exit 1"
Expand Down
4 changes: 2 additions & 2 deletions service-mail/templates/reset-password/en/html.pug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
p Hi,
p We have received word that you have lost your password. If you have asked for a password request please click on the link below. If you did not please delete this email.
p <a href="#{RESET_URL}?resetToken=#{RESET_TOKEN}" target="_blank">Click here</a> to reset your Pryv password.
p Pryv team
p <a href="#{RESET_URL}?resetToken=#{RESET_TOKEN}" target="_blank">Click here</a> to reset your HDS password.
p HDS team
4 changes: 2 additions & 2 deletions service-mail/templates/reset-password/fr/html.pug
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
p Bonjour,
p Il paraît que vous avez oublié votre mot de passe Pryv. Si vous avez bien demandé la réinitialisation de votre mot de passe, merci de cliquer sur le lien ci-dessous. Si ce n'était pas vous, merci de supprimer cet email.
p Il paraît que vous avez oublié votre mot de passe HDS. Si vous avez bien demandé la réinitialisation de votre mot de passe, merci de cliquer sur le lien ci-dessous. Si ce n'était pas vous, merci de supprimer cet email.
p <a href="#{RESET_URL}?resetToken=#{RESET_TOKEN}" target="_blank">Cliquez içi</a> pour réinitialiser votre mot de passe.
p L'équipe Pryv
p L'équipe HDS
2 changes: 1 addition & 1 deletion service-mail/templates/reset-password/fr/subject.pug
Original file line number Diff line number Diff line change
@@ -1 +1 @@
= `Bienvenue sur Pryv`
= `Bienvenue sur Health Data Safe`
4 changes: 2 additions & 2 deletions service-mail/templates/welcome-email/en/html.pug
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<h1><span style="color:#bd1026">Hey</span> #{USERNAME},</h1>

<h2><span style="color:#bd1026">Thanks for creating your Open Pryv.io account</span></h2>
<h2><span style="color:#bd1026">Thanks for creating your Health Data Safe account</span></h2>

<p style="text-align: justify;">We have built Pryv.io so you could have a private and secure place to collect and unite your personal digital life. Connect apps and devices, get insight and share selectively.<br/></p>
<p style="text-align: justify;">We have built HDS so you could have a private and secure place to collect and unite your personal digital life. Connect apps and devices, get insight and share selectively.<br/></p>

<p style="text-align: center;">Information you entrusted us with:<br/>
<strong>Email</strong>: #{EMAIL}<br/>
2 changes: 1 addition & 1 deletion service-mail/templates/welcome-email/en/subject.pug
Original file line number Diff line number Diff line change
@@ -1 +1 @@
= `Welcome to Open Pryv`
= `Welcome to Health Data Safe`
4 changes: 2 additions & 2 deletions service-mail/templates/welcome-email/fr/html.pug
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<h1><span style="color:#bd1026">Bonjour</span> #{USERNAME},</h1>

<h2><span style="color:#bd1026">Merci pour la création de votre compte Open Pryv.io</span></h2>
<h2><span style="color:#bd1026">Merci pour la création de votre compte Health Data Safe</span></h2>

<p style="text-align: justify;">Nous avons développé Pryv.io pour vous fournir une place pour collecter et unifier vos données de vies, tout en respectant votre sécurité et votre vie privée. Connectez vos applications et appareils, gérez et partagez en toute conscience.<br/></p>
<p style="text-align: justify;">Nous avons développé HDS pour vous fournir une place pour collecter et unifier vos données de vies, tout en respectant votre sécurité et votre vie privée. Connectez vos applications et appareils, gérez et partagez en toute conscience.<br/></p>

<p style="text-align: center;">Informations que vous nous avez confiées:<br/>
<strong>Email</strong>: #{EMAIL}<br/>
Expand Down
2 changes: 1 addition & 1 deletion service-mail/templates/welcome-email/fr/subject.pug
Original file line number Diff line number Diff line change
@@ -1 +1 @@
= `Bienvenue sur Open Pryv`
= `Bienvenue sur HDS`