|
5 | 5 | ## Used for logging in to Synapse. See https://python-docs.synapse.org/tutorials/authentication/ |
6 | 6 | ## for information on retrieving an auth token. |
7 | 7 |
|
| 8 | +## The [default] section is used when no profile is specified. |
| 9 | +## username is optional; if both username and authtoken are provided, they must match. |
| 10 | + |
8 | 11 | #[default] |
9 | 12 | #username = default_user |
10 | 13 | #authtoken = default_auth_token |
11 | 14 |
|
| 15 | +## Named profiles can be selected via syn.login(profile="user1"), |
| 16 | +## the SYNAPSE_PROFILE environment variable, or the --profile CLI flag. |
| 17 | + |
12 | 18 | #[profile user1] |
13 | 19 | #username = user1 |
14 | 20 | #authtoken = user1_auth_token |
|
17 | 23 | #username = user2 |
18 | 24 | #authtoken = user2_auth_token |
19 | 25 |
|
20 | | -## If you have projects with file stored on SFTP servers, you can specify your credentials here |
21 | | -## You can specify multiple sftp credentials |
| 26 | +## If you have projects with files stored on SFTP servers, you can specify your credentials here. |
| 27 | +## You can specify multiple SFTP credentials — use one section per server. |
| 28 | + |
22 | 29 | #[sftp://some.sftp.url.com] |
23 | | -#username= <sftpuser> |
24 | | -#password= <sftppwd> |
| 30 | +#username = <sftpuser> |
| 31 | +#password = <sftppwd> |
25 | 32 | #[sftp://a.different.sftp.url.com] |
26 | | -#username= <sftpuser> |
27 | | -#password= <sftppwd> |
| 33 | +#username = <sftpuser> |
| 34 | +#password = <sftppwd> |
28 | 35 |
|
29 | 36 |
|
30 | | -## If you have projects that need to be stored in an S3-like (e.g. AWS S3, Openstack) storage but cannot allow Synapse |
31 | | -## to manage access your storage you may put your credentials here. |
32 | | -## To avoid duplicating credentials with that used by the AWS Command Line Client, |
33 | | -## simply put the profile name form your ~/.aws/credentials file |
34 | | -## more information about aws credentials can be found here http://docs.aws.amazon.com/cli/latest/userguide/cli-config-files.html |
35 | | -#[https://s3.amazonaws.com/bucket_name] # this is the bucket's endpoint |
36 | | -#profile_name=local_credential_profile_name |
| 37 | +## If you have projects that need to be stored in an S3-like (e.g. AWS S3, OpenStack) storage |
| 38 | +## but cannot allow Synapse to manage access to your storage, you may put your credentials here. |
| 39 | +## To avoid duplicating credentials already used by the AWS CLI, specify the profile name from |
| 40 | +## your ~/.aws/credentials file. If profile_name is omitted, the "default" AWS profile is used. |
| 41 | +## More information about AWS credentials: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html |
| 42 | +## Use one section per bucket; the section name is the full endpoint URL including the bucket name. |
| 43 | + |
| 44 | +#[https://s3.amazonaws.com/bucket_name] |
| 45 | +#profile_name = local_credential_profile_name |
37 | 46 |
|
38 | 47 |
|
39 | 48 | ########################### |
40 | 49 | # Caching # |
41 | 50 | ########################### |
42 | 51 |
|
43 | | -## your downloaded files are cached to avoid repeat downloads of the same file. change 'location' to use a different folder on your computer as the cache location |
| 52 | +## Downloaded files are cached to avoid repeat downloads of the same file. |
| 53 | +## Change 'location' to use a different folder on your computer as the cache location. |
| 54 | +## Supports ~ for the home directory and environment variable expansion. |
| 55 | +## Default: ~/.synapseCache |
| 56 | + |
44 | 57 | #[cache] |
45 | 58 | #location = ~/.synapseCache |
46 | 59 |
|
|
49 | 62 | # Advanced Configurations # |
50 | 63 | ########################### |
51 | 64 |
|
52 | | -## If this section is specified, then the synapseclient will print out debug information |
| 65 | +## If this section is present, the synapseclient will print debug-level log output. |
53 | 66 | #[debug] |
54 | 67 |
|
55 | 68 |
|
56 | | -## Configuring these will cause the Python client to use these as Synapse service endpoints instead of the default prod endpoints. |
| 69 | +## Configuring these will cause the Python client to use these as Synapse service endpoints |
| 70 | +## instead of the default production endpoints. Useful for testing against staging environments. |
57 | 71 | #[endpoints] |
58 | | -#repoEndpoint=<repoEndpoint> |
59 | | -#authEndpoint=<authEndpoint> |
60 | | -#fileHandleEndpoint=<fileHandleEndpoint> |
61 | | -#portalEndpoint=<portalEndpoint> |
| 72 | +#repoEndpoint = <repoEndpoint> |
| 73 | +#authEndpoint = <authEndpoint> |
| 74 | +#fileHandleEndpoint = <fileHandleEndpoint> |
| 75 | +#portalEndpoint = <portalEndpoint> |
| 76 | + |
62 | 77 |
|
63 | | -## Settings to configure how Synapse uploads/downloads data |
| 78 | +## Settings to configure how Synapse uploads/downloads data. |
64 | 79 | #[transfer] |
65 | 80 |
|
66 | | -# use this to configure the default for how many threads/connections Synapse will use to perform file transfers. |
67 | | -# Currently this applies only to files whose underlying storage is AWS S3. |
68 | | -# max_threads=16 |
| 81 | +## max_threads: number of concurrent threads/connections used for file transfers. |
| 82 | +## Applies to AWS S3 transfers (uploads and downloads). |
| 83 | +## Default: min(cpu_count + 4, 128). Maximum: 128. Minimum: 1. |
| 84 | +## Can also be set programmatically: syn.max_threads = 16 |
| 85 | +#max_threads = 16 |
| 86 | + |
| 87 | +## use_boto_sts: if true, use AWS STS (Security Token Service) to obtain temporary |
| 88 | +## credentials for S3 transfers instead of using stored AWS credentials directly. |
| 89 | +## Useful when your storage location is configured with STS-based access. |
| 90 | +## Valid values: true or false (case-insensitive). Default: false. |
| 91 | +#use_boto_sts = false |
0 commit comments