diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 33 | ||||
-rw-r--r-- | config/production.yaml.example | 33 |
2 files changed, 66 insertions, 0 deletions
diff --git a/config/default.yaml b/config/default.yaml index 3d0ae6e87..3865ab5cf 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -95,6 +95,39 @@ storage: | |||
95 | # If not, peertube will fallback to the default fil | 95 | # If not, peertube will fallback to the default fil |
96 | client_overrides: 'storage/client-overrides/' | 96 | client_overrides: 'storage/client-overrides/' |
97 | 97 | ||
98 | object_storage: | ||
99 | enabled: false | ||
100 | |||
101 | # Without protocol, will default to HTTPS | ||
102 | endpoint: '' # 's3.amazonaws.com' or 's3.fr-par.scw.cloud' for example | ||
103 | |||
104 | region: 'us-east-1' | ||
105 | |||
106 | credentials: | ||
107 | # You can also use AWS_ACCESS_KEY_ID env variable | ||
108 | access_key_id: '' | ||
109 | # You can also use AWS_SECRET_ACCESS_KEY env variable | ||
110 | secret_access_key: '' | ||
111 | |||
112 | # Maximum amount to upload in one request to object storage | ||
113 | max_upload_part: 2GB | ||
114 | |||
115 | streaming_playlists: | ||
116 | bucket_name: 'streaming-playlists' | ||
117 | |||
118 | # Allows setting all buckets to the same value but with a different prefix | ||
119 | prefix: '' # Example: 'streaming-playlists:' | ||
120 | |||
121 | # Base url for object URL generation, scheme and host will be replaced by this URL | ||
122 | # Useful when you want to use a CDN/external proxy | ||
123 | base_url: '' # Example: 'https://mirror.example.com' | ||
124 | |||
125 | # Same settings but for webtorrent videos | ||
126 | videos: | ||
127 | bucket_name: 'videos' | ||
128 | prefix: '' | ||
129 | base_url: '' | ||
130 | |||
98 | log: | 131 | log: |
99 | level: 'info' # 'debug' | 'info' | 'warn' | 'error' | 132 | level: 'info' # 'debug' | 'info' | 'warn' | 'error' |
100 | rotation: | 133 | rotation: |
diff --git a/config/production.yaml.example b/config/production.yaml.example index 514ab99a4..94238fad0 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -93,6 +93,39 @@ storage: | |||
93 | # If not, peertube will fallback to the default file | 93 | # If not, peertube will fallback to the default file |
94 | client_overrides: '/var/www/peertube/storage/client-overrides/' | 94 | client_overrides: '/var/www/peertube/storage/client-overrides/' |
95 | 95 | ||
96 | object_storage: | ||
97 | enabled: false | ||
98 | |||
99 | # Without protocol, will default to HTTPS | ||
100 | endpoint: '' # 's3.amazonaws.com' or 's3.fr-par.scw.cloud' for example | ||
101 | |||
102 | region: 'us-east-1' | ||
103 | |||
104 | credentials: | ||
105 | # You can also use AWS_ACCESS_KEY_ID env variable | ||
106 | access_key_id: '' | ||
107 | # You can also use AWS_SECRET_ACCESS_KEY env variable | ||
108 | secret_access_key: '' | ||
109 | |||
110 | # Maximum amount to upload in one request to object storage | ||
111 | max_upload_part: 2GB | ||
112 | |||
113 | streaming_playlists: | ||
114 | bucket_name: 'streaming-playlists' | ||
115 | |||
116 | # Allows setting all buckets to the same value but with a different prefix | ||
117 | prefix: '' # Example: 'streaming-playlists:' | ||
118 | |||
119 | # Base url for object URL generation, scheme and host will be replaced by this URL | ||
120 | # Useful when you want to use a CDN/external proxy | ||
121 | base_url: '' # Example: 'https://mirror.example.com' | ||
122 | |||
123 | # Same settings but for webtorrent videos | ||
124 | videos: | ||
125 | bucket_name: 'videos' | ||
126 | prefix: '' | ||
127 | base_url: '' | ||
128 | |||
96 | log: | 129 | log: |
97 | level: 'info' # 'debug' | 'info' | 'warn' | 'error' | 130 | level: 'info' # 'debug' | 'info' | 'warn' | 'error' |
98 | rotation: | 131 | rotation: |