Skip to content

Commit c10d359

Browse files
committed
reorganize env
1 parent a8dc141 commit c10d359

File tree

5 files changed

+23
-24
lines changed

5 files changed

+23
-24
lines changed

apps/proxy/.env.example

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
BUCKET_NAME=s3fs
2-
AWS_REGION=us-east-1
3-
S3FS_MOUNT=/mnt/s3
4-
DATA_MOUNT=/mnt/data
5-
6-
AWS_ENDPOINT_URL_S3=http://host.docker.internal:54321/storage/v1/s3
7-
AWS_REGION=local
81
AWS_ACCESS_KEY_ID=625729a08b95bf1b7ff351a663f3a23c
2+
AWS_ENDPOINT_URL_S3=http://host.docker.internal:54321/storage/v1/s3
3+
AWS_S3_BUCKET=s3fs
94
AWS_SECRET_ACCESS_KEY=850181e4652dd023b7a98c58ae0d2d34bd487ee0cc3254aed6eda37307425907
5+
AWS_REGION=local
6+
DATA_MOUNT=/mnt/data
7+
S3FS_MOUNT=/mnt/s3
8+
SUPABASE_SERVICE_ROLE_KEY="<service-role-key>"
9+
SUPABASE_URL="<supabase-url>"
10+
WILDCARD_DOMAIN=db.example.com
1011

11-
WILDCARD_DOMAIN=db.example.com

apps/proxy/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ trap 'cleanup' EXIT
2121
mkdir -p $S3FS_MOUNT
2222

2323
# Mount the S3 bucket
24-
s3fs $BUCKET_NAME $S3FS_MOUNT -o use_path_request_style -o url=$AWS_ENDPOINT_URL_S3 -o endpoint=$AWS_REGION
24+
s3fs $AWS_S3_BUCKET $S3FS_MOUNT -o use_path_request_style -o url=$AWS_ENDPOINT_URL_S3 -o endpoint=$AWS_REGION
2525

2626
# Check if the mount was successful
2727
if mountpoint -q $S3FS_MOUNT; then

apps/proxy/tools/certbot/.env.example

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
AWS_ACCESS_KEY_ID=625729a08b95bf1b7ff351a663f3a23c
2+
AWS_ENDPOINT_URL_S3=http://host.docker.internal:54321/storage/v1/s3
3+
AWS_S3_BUCKET=s3fs
4+
AWS_SECRET_ACCESS_KEY=850181e4652dd023b7a98c58ae0d2d34bd487ee0cc3254aed6eda37307425907
5+
AWS_REGION=local
16
CERTBOT_DOMAIN=db.postgres.new
27
CERTBOT_EMAIL="<your-email>"
38
CLOUDFLARE_API_TOKEN="<cloudflare-api-token>"
4-
AWS_ACCESS_KEY_ID=minioadmin
5-
AWS_ENDPOINT_URL_S3=http://minio:9000
6-
AWS_REGION=us-east-1
7-
AWS_SECRET_ACCESS_KEY=minioadmin
8-
BUCKET_NAME=s3fs
99
S3FS_MOUNT=/mnt/s3

apps/proxy/tools/certbot/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ trap 'cleanup' EXIT
2121
mkdir -p $S3FS_MOUNT
2222

2323
# Mount the S3 bucket
24-
s3fs $BUCKET_NAME $S3FS_MOUNT -o use_path_request_style -o url=$AWS_ENDPOINT_URL_S3 -o endpoint=$AWS_REGION
24+
s3fs $AWS_S3_BUCKET $S3FS_MOUNT -o use_path_request_style -o url=$AWS_ENDPOINT_URL_S3 -o endpoint=$AWS_REGION
2525

2626
# Check if the mount was successful
2727
if mountpoint -q $S3FS_MOUNT; then

apps/web/.env.example

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
NEXT_PUBLIC_SUPABASE_ANON_KEY="<supabase-anon-key>"
2-
NEXT_PUBLIC_SUPABASE_URL="<supabase-api-url>"
3-
NEXT_PUBLIC_IS_PREVIEW=true
4-
NEXT_PUBLIC_WILDCARD_DOMAIN=db.example.com
5-
6-
OPENAI_API_KEY="<openai-api-key>"
7-
AWS_S3_BUCKET=s3fs
8-
AWS_ENDPOINT_URL_S3=http://localhost:54321/storage/v1/s3
91
AWS_ACCESS_KEY_ID=625729a08b95bf1b7ff351a663f3a23c
2+
AWS_ENDPOINT_URL_S3=http://localhost:54321/storage/v1/s3
3+
AWS_S3_BUCKET=s3fs
104
AWS_SECRET_ACCESS_KEY=850181e4652dd023b7a98c58ae0d2d34bd487ee0cc3254aed6eda37307425907
11-
AWS_REGION=local
5+
AWS_REGION=local
6+
OPENAI_API_KEY="<openai-api-key>"
7+
NEXT_PUBLIC_IS_PREVIEW=true
8+
NEXT_PUBLIC_SUPABASE_ANON_KEY="<supabase-anon-key>"
9+
NEXT_PUBLIC_SUPABASE_URL="<supabase-api-url>"
10+
NEXT_PUBLIC_WILDCARD_DOMAIN=db.example.com

0 commit comments

Comments
 (0)