Skip to content

Commit

Permalink
added nhost
Browse files Browse the repository at this point in the history
  • Loading branch information
atapas committed Jun 3, 2022
1 parent d92c14d commit 1f11a10
Show file tree
Hide file tree
Showing 42 changed files with 716 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ package-lock.json
npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock
yarn.lock

# nhost
.nhost
137 changes: 137 additions & 0 deletions nhost/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
metadata_directory: metadata
services:
hasura:
environment:
hasura_graphql_enable_remote_schema_permissions: false
minio:
environment:
minio_root_password: minioaccesskey123123
minio_root_user: minioaccesskey123123
postgres:
environment:
postgres_password: postgres
postgres_user: postgres
auth:
access_control:
email:
allowed_email_domains: ""
allowed_emails: ""
blocked_email_domains: ""
blocked_emails: ""
url:
allowed_redirect_urls: ""
anonymous_users_enabled: false
client_url: http:https://localhost:3000
disable_new_users: false
email:
enabled: false
passwordless:
enabled: false
signin_email_verified_required: true
template_fetch_url: ""
gravatar:
default: ""
enabled: true
rating: ""
locale:
allowed: en
default: en
password:
hibp_enabled: false
min_length: 3
provider:
apple:
client_id: ""
enabled: false
key_id: ""
private_key: ""
scope: name,email
team_id: ""
bitbucket:
client_id: ""
client_secret: ""
enabled: false
facebook:
client_id: ""
client_secret: ""
enabled: false
scope: email,photos,displayName
github:
client_id: ""
client_secret: ""
enabled: false
scope: user:email
token_url: ""
user_profile_url: ""
gitlab:
base_url: ""
client_id: ""
client_secret: ""
enabled: false
scope: read_user
google:
client_id: ""
client_secret: ""
enabled: false
scope: email,profile
linkedin:
client_id: ""
client_secret: ""
enabled: false
scope: r_emailaddress,r_liteprofile
spotify:
client_id: ""
client_secret: ""
enabled: false
scope: user-read-email,user-read-private
strava:
client_id: ""
client_secret: ""
enabled: false
twilio:
account_sid: ""
auth_token: ""
enabled: false
messaging_service_id: ""
twitter:
consumer_key: ""
consumer_secret: ""
enabled: false
windows_live:
client_id: ""
client_secret: ""
enabled: false
scope: wl.basic,wl.emails,wl.contacts_emails
sms:
enabled: false
passwordless:
enabled: false
provider:
twilio:
account_sid: ""
auth_token: ""
from: ""
messaging_service_id: ""
smtp:
host: nhost_mailhog
method: ""
pass: password
port: 1894
secure: false
sender: [email protected]
user: user
token:
access:
expires_in: 900
refresh:
expires_in: 43200
user:
allowed_roles: user,me
default_allowed_roles: user,me
default_role: user
mfa:
enabled: false
issuer: nhost
storage:
force_download_for_content_types: text/html,application/javascript
version: 3
18 changes: 18 additions & 0 deletions nhost/emails/en/email-confirm-change/body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
</head>

<body>
<h2>Confirm Email Change</h2>
<p>Use this link to confirm changing email:</p>
<p>
<a href="${link}">
Change email
</a>
</p>
</body>

</html>
1 change: 1 addition & 0 deletions nhost/emails/en/email-confirm-change/subject.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Change your email address
18 changes: 18 additions & 0 deletions nhost/emails/en/email-verify/body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
</head>

<body>
<h2>Verify Email</h2>
<p>Use this link to verify your email:</p>
<p>
<a href="${link}">
Verify Email
</a>
</p>
</body>

</html>
1 change: 1 addition & 0 deletions nhost/emails/en/email-verify/subject.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Verify your email
18 changes: 18 additions & 0 deletions nhost/emails/en/password-reset/body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
</head>

<body>
<h2>Reset Password</h2>
<p>Use this link to reset your password:</p>
<p>
<a href="${link}">
Reset password
</a>
</p>
</body>

</html>
1 change: 1 addition & 0 deletions nhost/emails/en/password-reset/subject.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reset your password
18 changes: 18 additions & 0 deletions nhost/emails/en/signin-passwordless/body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
</head>

<body>
<h2>Magic Link</h2>
<p>Use this link to securely sign in:</p>
<p>
<a href="${link}">
Sign In
</a>
</p>
</body>

</html>
1 change: 1 addition & 0 deletions nhost/emails/en/signin-passwordless/subject.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Secure sign-in link
18 changes: 18 additions & 0 deletions nhost/emails/fr/email-confirm-change/body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
</head>

<body>
<h2>Confirmer changement de courriel</h2>
<p>Utilisez ce lien pour confirmer le changement de courriel:</p>
<p>
<a href="${link}">
Changer courriel
</a>
</p>
</body>

</html>
1 change: 1 addition & 0 deletions nhost/emails/fr/email-confirm-change/subject.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Changez votre adresse courriel
18 changes: 18 additions & 0 deletions nhost/emails/fr/email-verify/body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
</head>

<body>
<h2>V&eacute;rifiez votre courriel</h2>
<p>Utilisez ce lien pour v&eacute;rifier votre courriel:</p>
<p>
<a href="${link}">
V&eacute;rifier courriel
</a>
</p>
</body>

</html>
1 change: 1 addition & 0 deletions nhost/emails/fr/email-verify/subject.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Vérifier votre courriel
18 changes: 18 additions & 0 deletions nhost/emails/fr/password-reset/body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
</head>

<body>
<h2>R&eacute;initializer votre mot de passe</h2>
<p>Utilisez ce lien pour r&eacute;initializer votre mot de passe:</p>
<p>
<a href="${link}">
R&eacute;initializer mot de passe
</a>
</p>
</body>

</html>
1 change: 1 addition & 0 deletions nhost/emails/fr/password-reset/subject.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Réinitialiser votre mot de passe
18 changes: 18 additions & 0 deletions nhost/emails/fr/signin-passwordless/body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8" />
</head>

<body>
<h2>Lien magique</h2>
<p>Utilisez ce lien pour vous connecter de fa&ccedil;on s&eacute;curitaire:</p>
<p>
<a href="${link}">
Connexion
</a>
</p>
</body>

</html>
1 change: 1 addition & 0 deletions nhost/emails/fr/signin-passwordless/subject.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Lien de connexion sécurisé
Empty file added nhost/metadata/actions.graphql
Empty file.
6 changes: 6 additions & 0 deletions nhost/metadata/actions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
actions: []
custom_types:
enums: []
input_objects: []
objects: []
scalars: []
1 change: 1 addition & 0 deletions nhost/metadata/allow_list.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions nhost/metadata/cron_triggers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
14 changes: 14 additions & 0 deletions nhost/metadata/databases/databases.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- name: default
kind: postgres
configuration:
connection_info:
database_url:
from_env: HASURA_GRAPHQL_DATABASE_URL
isolation_level: read-committed
pool_settings:
connection_lifetime: 600
idle_timeout: 60
max_connections: 10
retries: 1
use_prepared_statements: true
tables: "!include default/tables/tables.yaml"
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
table:
name: provider_requests
schema: auth
configuration:
custom_column_names: {}
custom_name: authProviderRequests
custom_root_fields:
delete: deleteAuthProviderRequests
delete_by_pk: deleteAuthProviderRequest
insert: insertAuthProviderRequests
insert_one: insertAuthProviderRequest
select: authProviderRequests
select_aggregate: authProviderRequestsAggregate
select_by_pk: authProviderRequest
update: updateAuthProviderRequests
update_by_pk: updateAuthProviderRequest
24 changes: 24 additions & 0 deletions nhost/metadata/databases/default/tables/auth_providers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
table:
name: providers
schema: auth
configuration:
custom_column_names: {}
custom_name: authProviders
custom_root_fields:
delete: deleteAuthProviders
delete_by_pk: deleteAuthProvider
insert: insertAuthProviders
insert_one: insertAuthProvider
select: authProviders
select_aggregate: authProvidersAggregate
select_by_pk: authProvider
update: updateAuthProviders
update_by_pk: updateAuthProvider
array_relationships:
- name: userProviders
using:
foreign_key_constraint_on:
column: provider_id
table:
name: user_providers
schema: auth
Loading

0 comments on commit 1f11a10

Please sign in to comment.