File tree 5 files changed +40
-1
lines changed
5 files changed +40
-1
lines changed Original file line number Diff line number Diff line change
1
+ export CODER_ACCESS_URL = " https://coder.access.url"
2
+ export CODER_HTTP_ADDRESS = "0.0.0.0:3000" #If using nginx -> 127.0.0.1:3000
3
+ export CODER_PROVISIONER_DAEMONS = 5
4
+ export CODER_TLS_ENABLE = false
5
+
6
+ export CODER_REDIRECT_TO_ACCESS_URL = false
7
+ export CODER_TELEMETRY_ENABLE = false
8
+ export CODER_OIDC_ENABLED = true
9
+ export CODER_OIDC_ISSUER_URL = " https://oidc.issuer.url"
10
+ export CODER_OIDC_CLIENT_ID = " your-oidc-client-id"
11
+ export CODER_OIDC_CLIENT_SECRET = " your-oidc-client-secret"
12
+ export CODER_OIDC_SCOPES = " openid email"
13
+ export CODER_OIDC_IGNORE_EMAIL_VERIFIED = true
14
+ export CODER_OIDC_REDIRECT_URI = " $BASE_URL /api/v2/users/oidc/callback"
15
+ export CODER_OIDC_LOGOUT_URI = " https://oidc.logout.url"
16
+ export CODER_OIDC_TOKEN_PATH = " /home/ubuntu/.coder/tokens"
17
+
18
+ # if VITE_DISABLE_EXTERNAL_LOGIN_PAGE variable is true, CODER_DISABLE_PASSWORD_AUTH variable must be false
19
+ export VITE_DISABLE_EXTERNAL_LOGIN_PAGE = true
20
+ export CODER_DISABLE_PASSWORD_AUTH = false
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ gotests.json
11
11
node_modules /
12
12
vendor /
13
13
yarn-error.log
14
+ .env
14
15
15
16
# VSCode settings.
16
17
** /.vscode /*
Original file line number Diff line number Diff line change
1
+ /// <reference types="vite/client" />
2
+
3
+ interface ViteTypeOptions {
4
+ strictImportEnv : unknown
5
+ }
6
+
7
+ interface ImportMetaEnv {
8
+ readonly VITE_DISABLE_EXTERNAL_LOGIN_PAGE : string
9
+ }
10
+
11
+ interface ImportMeta {
12
+ readonly env : ImportMetaEnv
13
+ }
Original file line number Diff line number Diff line change @@ -69,7 +69,11 @@ export const LoginPage: FC = () => {
69
69
/>
70
70
) ;
71
71
}
72
- } else {
72
+ }
73
+
74
+ const disableExternalLoginPage = import . meta. env . VITE_DISABLE_EXTERNAL_LOGIN_PAGE === "true" ;
75
+
76
+ if ( ! isSignedIn && ! disableExternalLoginPage ) {
73
77
window . location . replace ( `https://heaan.io` ) ;
74
78
return null ;
75
79
}
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ export default defineConfig({
29
29
// 'hidden' works like true except that the corresponding sourcemap comments in the bundled files are suppressed
30
30
sourcemap : "hidden" ,
31
31
} ,
32
+ envDir : "../" ,
32
33
define : {
33
34
"process.env" : {
34
35
NODE_ENV : process . env . NODE_ENV ,
You can’t perform that action at this time.
0 commit comments