-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[chore] Update setup.sh, with removed replacement script & added project-level ENVs
#2115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
b342022
chore: Updated Setup Script for Splitting Env File
henit-chobisa 9c33e64
chore: updated dockerfile for using inproject env varaibles
henit-chobisa e4779c8
chore: removed husky replacement script
henit-chobisa 4b164ef
chore: updated shell script using sed
henit-chobisa 0736b41
chore: updated dockerfiles with removed cp statement
henit-chobisa b3767c5
chore: added example env for apiserver
henit-chobisa 9ec406b
chore: refactored secret generation for backend
henit-chobisa e5997fc
chore: removed replacement script
henit-chobisa de3db65
chore: updated docker-compose with removed env variables
henit-chobisa 01a4dbd
chore: resolved comments in setup.sh and docker-compose
henit-chobisa 011118f
chore: removed secret key placeholder in apiserver example env
henit-chobisa cfc9536
chore: updated root env for project less env variables
henit-chobisa dd7d614
chore: removed project level env update from root env logic
henit-chobisa fdb389b
chore: updated API_BASE_URL in .env.example
henit-chobisa e92812a
chore: restored docker argument as env NEXT_PUBLIC_API_BASE_URL
henit-chobisa c0b83d8
chore: added pg missing env variables
henit-chobisa 3010107
[chore] Updated web and deploy backend configuration for reverse prox…
henit-chobisa 5628b03
dev: remove API_BASE_URL from environment variable
pablohashescobar 76800a7
merge conflicts resolved
sriramveeraghanta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,60 @@ | ||
| # Backend | ||
| # Debug value for api server use it as 0 for production use | ||
| DEBUG=0 | ||
|
|
||
| # Error logs | ||
| SENTRY_DSN="" | ||
|
|
||
| # Database Settings | ||
| PGUSER="plane" | ||
| PGPASSWORD="plane" | ||
| PGHOST="plane-db" | ||
| PGDATABASE="plane" | ||
| DATABASE_URL=postgresql://${PGUSER}:${PGPASSWORD}@${PGHOST}/${PGDATABASE} | ||
|
|
||
| # Redis Settings | ||
| REDIS_HOST="plane-redis" | ||
| REDIS_PORT="6379" | ||
| REDIS_URL="redis://${REDIS_HOST}:6379/" | ||
|
|
||
| # Email Settings | ||
| EMAIL_HOST="" | ||
| EMAIL_HOST_USER="" | ||
| EMAIL_HOST_PASSWORD="" | ||
| EMAIL_PORT=587 | ||
| EMAIL_FROM="Team Plane <team@mailer.plane.so>" | ||
| EMAIL_USE_TLS="1" | ||
| EMAIL_USE_SSL="0" | ||
|
|
||
| # AWS Settings | ||
| AWS_REGION="" | ||
| AWS_ACCESS_KEY_ID="access-key" | ||
| AWS_SECRET_ACCESS_KEY="secret-key" | ||
| AWS_S3_ENDPOINT_URL="http://plane-minio:9000" | ||
| # Changing this requires change in the nginx.conf for uploads if using minio setup | ||
| AWS_S3_BUCKET_NAME="uploads" | ||
| # Maximum file upload limit | ||
| FILE_SIZE_LIMIT=5242880 | ||
|
|
||
| # GPT settings | ||
| OPENAI_API_BASE="https://api.openai.com/v1" # change if using a custom endpoint | ||
| OPENAI_API_KEY="sk-" # add your openai key here | ||
| GPT_ENGINE="gpt-3.5-turbo" # use "gpt-4" if you have access | ||
|
|
||
| # Github | ||
| GITHUB_CLIENT_SECRET="" # For fetching release notes | ||
|
|
||
| # Settings related to Docker | ||
| DOCKERIZED=1 | ||
| # set to 1 If using the pre-configured minio setup | ||
| USE_MINIO=1 | ||
|
|
||
| # Nginx Configuration | ||
| NGINX_PORT=80 | ||
|
|
||
| # Default Creds | ||
| DEFAULT_EMAIL="captain@plane.so" | ||
| DEFAULT_PASSWORD="password123" | ||
|
|
||
| # SignUps | ||
| ENABLE_SIGNUP="1" |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,2 @@ | ||
| export const API_BASE_URL = | ||
| process.env.NEXT_PUBLIC_API_BASE_URL !== undefined ? process.env.NEXT_PUBLIC_API_BASE_URL : "http://localhost:8000"; |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.