-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add workspaces UI Service to the docker deployment
- Loading branch information
Showing
3 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Write-Host "Generating API key..." | ||
|
||
# all characters | ||
$API_KEY=(-join ((33..126) | Get-Random -Count 32 | % {[char]$_})) | ||
$env:AI_UNLIMITED_INIT_API_KEY = $API_KEY | ||
|
||
Write-Host "API Key is generated, please export it by running the following command: \n" | ||
Write-Host '$env:AI_UNLIMITED_INIT_API_KEY = $API_KEY' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
API_KEY=$(LC_ALL=C tr -dc A-Za-z0-9 </dev/urandom | head -c 64) | ||
|
||
# Set the value of the environment variable | ||
export AI_UNLIMITED_INIT_API_KEY=$API_KEY | ||
|
||
# Print the value of the environment variable | ||
echo "API Key is generated, if the shell script is not run with source, please export the following environment variable:" | ||
echo '' | ||
echo "export AI_UNLIMITED_INIT_API_KEY=${API_KEY}" |