|
| 1 | +# Configuration for Hasura Auth |
| 2 | + |
| 3 | +# All values in this configuration are strings, including boolean and integer |
| 4 | +# values. |
| 5 | + |
| 6 | +# Configuration for default providers |
| 7 | +# Each provider has the following fields: |
| 8 | +# `enabled` : To mark if the provider is enabled. Valid values are "true" or |
| 9 | +# "false". |
| 10 | +# `defaultRoles`: Specify the roles that get added when a user signs-up. By |
| 11 | +# default the user role is added (even when the list does not contain "user"). |
| 12 | +# If you do not want any extra roles, leave it as an empty list. |
| 13 | +# Example: the below two examples are same |
| 14 | +# defaultRoles: ["user", "admin"] |
| 15 | +# defaultRoles: ["admin"] |
| 16 | +defaultProviders: |
| 17 | + username: |
| 18 | + enabled: "true" |
| 19 | + defaultRoles: [] |
| 20 | + email: |
| 21 | + enabled: "false" |
| 22 | + defaultRoles: [] |
| 23 | + mobile: |
| 24 | + enabled: "false" |
| 25 | + defaultRoles: [] |
| 26 | + mobile-password: |
| 27 | + enabled: "false" |
| 28 | + defaultRoles: [] |
| 29 | + google: |
| 30 | + enabled: "false" |
| 31 | + defaultRoles: [] |
| 32 | + facebook: |
| 33 | + enabled: "false" |
| 34 | + defaultRoles: [] |
| 35 | + github: |
| 36 | + enabled: "false" |
| 37 | + defaultRoles: [] |
| 38 | + linkedin: |
| 39 | + enabled: "false" |
| 40 | + defaultRoles: [] |
| 41 | + |
| 42 | +# Session related configuration |
| 43 | +session: |
| 44 | + # Name of the cookie. This is usually set to your cluster's domain. No need |
| 45 | + # to edit this in normal circumstances. |
| 46 | + cookieName: {{ cluster.name }} |
| 47 | + # if the cookie should be sent over https only. Stick to "true". |
| 48 | + cookieSecure: "true" |
| 49 | + # The default age of a user session in seconds. Default: 181440 (3 weeks) |
| 50 | + sessionAge: "1814400" |
| 51 | + |
| 52 | +# Configuration related to the email provider |
| 53 | +email: |
| 54 | + # email address of the sender for verification emails |
| 55 | + verifyEmailFrom: [email protected] |
| 56 | + # Name of the sender for verification emails |
| 57 | + verifEmailFromName: Admin |
| 58 | + # Subject for verification emails |
| 59 | + verifyEmailSubject: Verify your account - {{ cluster.name }} |
| 60 | + # Template for verification emails. HTML can be used in the template. The |
| 61 | + # template is a Jinja template. Leave the "{{token}}" as it is. It will be |
| 62 | + # used by the auth service to inject the actual token when sending the email. |
| 63 | + verifyTemplate: | |
| 64 | + Hi, Please click on <br/> |
| 65 | + https://auth.{{ cluster.name }}.hasura-app.io/ui/verify-email?token={{ "{{token}}" }} |
| 66 | + to verify your email. |
| 67 | + # Email verification token expiry time in days |
| 68 | + verifyTokenExpires: "7" |
| 69 | + |
| 70 | + # email address of the sender for forgot password emails |
| 71 | + forgotPassEmailFrom: [email protected] |
| 72 | + # Name of the sender for forgot password emails |
| 73 | + forgotPassEmailFromName: Admin |
| 74 | + # Subject for forgot password emails |
| 75 | + forgotPassEmailSubject: Reset password request - {{ cluster.name }} |
| 76 | + # Template for forgot password emails. HTML can be used in the template. The |
| 77 | + # template is a Jinja template. Leave the "{{token}}" as it is. It will be |
| 78 | + # used by the auth service to inject the actual token when sending the email. |
| 79 | + forgotPassTemplate: | |
| 80 | + Hi, <br/> Click on |
| 81 | + https://auth.{{ cluster.name }}.hasura-app.io/ui/reset-password?token={{ "{{token}}" }} |
| 82 | + to reset your password. |
| 83 | + # Forgot password reset token expiry time in days |
| 84 | + resetTokenExpires: "7" |
| 85 | + |
| 86 | +# Configuration for the mobile provider |
| 87 | +mobile: |
| 88 | + # Template for the SMS that is sent. This is a Jinja template. Leave the |
| 89 | + # "{{otp}}" as it is. It will be used by the auth service to inject the |
| 90 | + # actual token. |
| 91 | + smsTemplate: | |
| 92 | + Verify your acccount with {{ cluster.name }}! Your OTP is {{ "{{otp}}" }}. |
| 93 | + # OTP expiry time in minutes |
| 94 | + otpExpiryTime: "15" |
| 95 | + |
| 96 | +# Configuration for the mobile-password provider |
| 97 | +mobilePassword: |
| 98 | + # Template for the SMS that is sent. This is a Jinja template. Leave the |
| 99 | + # "{{otp}}" as it is. It will be used by the auth service to inject the |
| 100 | + # actual token. |
| 101 | + smsTemplate: | |
| 102 | + Verify your acccount with {{ cluster.name }}! Your OTP is {{ "{{otp}}" }}. |
| 103 | + # OTP expiry time in minutes |
| 104 | + otpExpiryTime: "15" |
| 105 | + |
| 106 | +# Configuration for password |
| 107 | +password: |
| 108 | + # minimum length of the password allowed. |
| 109 | + minLength: "8" |
| 110 | + |
| 111 | +# Below fields are all optional |
| 112 | +# |
| 113 | +# Configuration for google provider |
| 114 | +#google: |
| 115 | +# # list of the all the client ids generated for your Google app |
| 116 | +# clientIds: ["xxxxxx", "yyyyyy"] |
| 117 | +# |
| 118 | +# Configuration for facebook provider |
| 119 | +#facebook: |
| 120 | +# # your facebook app client id |
| 121 | +# clientId: xxxxxxxxx |
| 122 | +# # your facebook app client secret |
| 123 | +# clientSecret: |
| 124 | +# secretKeyRef: |
| 125 | +# key: auth.facebook.client_secret |
| 126 | +# name: hasura-secrets |
| 127 | +# |
| 128 | +# Configuration for github provider |
| 129 | +#github: |
| 130 | +# # your github app client id |
| 131 | +# clientId: xxxxxxxxx |
| 132 | +# # your github app client secret |
| 133 | +# clientSecret: |
| 134 | +# secretKeyRef: |
| 135 | +# key: auth.github.client_secret |
| 136 | +# name: hasura-secrets |
| 137 | +# |
| 138 | +# Configuration for linkedin provider |
| 139 | +#linkedin: |
| 140 | +# # your linkedin app client id |
| 141 | +# clientId: xxxxxxxxx |
| 142 | +# # your linkedin app client secret |
| 143 | +# clientSecret: |
| 144 | +# secretKeyRef: |
| 145 | +# key: auth.linkedin.client_secret |
| 146 | +# name: hasura-secrets |
| 147 | + |
| 148 | +# Configuration for adding a custom provider |
| 149 | +#customProviders: |
| 150 | +# myCustomProvider: |
| 151 | +# enabled: "true", |
| 152 | +# hooks: |
| 153 | +# signup: "https://mycustomprovider.test42.hasura-app.io/signup" |
| 154 | +# login: "https://mycustomprovider.test42.hasura-app.io/login" |
| 155 | +# merge: "https://mycustomprovider.test42.hasura-app.io/merge" |
| 156 | +# createUser: "https://mycustomprovider.test42.hasura-app.io/create-user" |
| 157 | +# deleteUser: "https://mycustomprovider.test42.hasura-app.io/delete-user" |
| 158 | +# defaultRoles: ["admin"] |
| 159 | + |
| 160 | + |
| 161 | +# The below fields are used by the platform when initializing. Please do not |
| 162 | +# edit these configuration |
| 163 | +postgres: |
| 164 | + database: hasuradb |
| 165 | + host: postgres.{{ cluster.metadata.namespaces.hasura }} |
| 166 | + password: |
| 167 | + secretKeyRef: |
| 168 | + key: postgres.password |
| 169 | + name: hasura-secrets |
| 170 | + port: "5432" |
| 171 | + user: |
| 172 | + secretKeyRef: |
| 173 | + key: postgres.user |
| 174 | + name: hasura-secrets |
| 175 | +redis: |
| 176 | + cred: null |
| 177 | + host: session-redis.{{ cluster.metadata.namespaces.hasura }} |
| 178 | + port: "6379" |
| 179 | +notifyDomain: http://notify.{{ cluster.metadata.namespaces.hasura }} |
| 180 | +superUser: |
| 181 | + password: |
| 182 | + secretKeyRef: |
| 183 | + key: auth.admin.password |
| 184 | + name: hasura-secrets |
| 185 | + username: admin |
| 186 | + # optional fields |
| 187 | + |
| 188 | + # mobile: 987654321 |
0 commit comments