Fakultas Ilmu Komputer UI

Commit 74877390 authored by I Gusti Putu Agastya Indrayana's avatar I Gusti Putu Agastya Indrayana
Browse files

Revert "[CHORES] GCS credential error"

parent d0b0a13c
......@@ -150,20 +150,7 @@ STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
MEDIA_URL = "/media/"
if is_heroku:
service_account_info = {
"type": "service_account",
"project_id": config("project_id"),
"private_key_id": config("private_key_id"),
"private_key": config("private_key"),
"client_email": config("client_email"),
"client_id": config("client_id"),
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/788875616341-compute%40developer.gserviceaccount.com"
}
GS_CREDENTIALS = service_account.Credentials.from_service_account_info(
**service_account_info)
DEFAULT_FILE_STORAGE = 'storages.backends.gcloud.GoogleCloudStorage'
GS_BUCKET_NAME = "digipus-gitlab-persistent-storage"
GS_DEFAULT_ACL = 'publicRead'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment