Skip to content

Commit

Permalink
chore: change gitignore for credential cloud storage
Browse files Browse the repository at this point in the history
  • Loading branch information
swusjask committed Jun 13, 2024
1 parent 45d54bf commit 2bce1cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,6 @@ GitHub.sublime-settings

# certbot configuration
certbot/*

# gcloud credential
credential*.json
7 changes: 3 additions & 4 deletions app/ce_tour/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,12 @@
from google.oauth2 import service_account

GS_CREDENTIALS = service_account.Credentials.from_service_account_file(
# "credensial.json"
"Credential.json"
os.getenv("GS_CREDENTIALS")
)

DEFAULT_FILE_STORAGE = "ce_tour.gcloud.GoogleCloudMediaFileStorage"
GS_PROJECT_ID = "educatour"
GS_BUCKET_NAME = "educatour"
GS_PROJECT_ID = os.getenv("GS_PROJECT_ID")
GS_BUCKET_NAME = os.getenv("GS_BUCKET_NAME")
MEDIA_URL = "https://storage.googleapis.com/{}/".format(GS_BUCKET_NAME)

# Internationalization
Expand Down

0 comments on commit 2bce1cd

Please sign in to comment.