mirror of
https://github.com/bellingcat/auto-archiver.git
synced 2026-06-12 21:28:29 +03:00
refactored and simplified obtaining credentials
This commit is contained in:
@@ -18,15 +18,18 @@ secrets:
|
||||
|
||||
# needed if you use storage=gd
|
||||
google_drive:
|
||||
# 1.service account to write to google storage - be aware of 15GB limit. Recommend using OAuth user.
|
||||
# filename can be the same or different file from google_sheets.service_account
|
||||
# To authenticate with google you have two options (1. service account OR 2. OAuth token)
|
||||
|
||||
# 1. service account - storage space will count towards the developer account
|
||||
# filename can be the same or different file from google_sheets.service_account, defaults to "service_account.json"
|
||||
# service_account: "service_account.json"
|
||||
|
||||
# 2.token (only 1. or 2. - if both specified then this 2. token takes precedence)
|
||||
# will need to have write access on the server so refresh flow works
|
||||
# run the file `create_update_test_oauth_token.py` to create the token and save in a secrets directory so
|
||||
# it is not checked into source control
|
||||
oauth_token_file_path_and_name: "secrets/token-davemateer-gmail.json"
|
||||
# 2. OAuth token - storage space will count towards the owner of the GDrive folder
|
||||
# (only 1. or 2. - if both specified then this 2. takes precedence)
|
||||
# needs write access on the server so refresh flow works
|
||||
# To get the token, run the file `create_update_test_oauth_token.py`
|
||||
# you can edit that file if you want a different token filename, default is "gd-token.json"
|
||||
oauth_token_filename: "gd-token.json"
|
||||
|
||||
root_folder_id: copy XXXX from https://drive.google.com/drive/folders/XXXX
|
||||
|
||||
|
||||
Reference in New Issue
Block a user