Get media upload/download proxy URL, fallback to request proxy
(self)
| 121 | return None |
| 122 | |
| 123 | async def get_media_proxy_url(self) -> Optional[str]: |
| 124 | """Get media upload/download proxy URL, fallback to request proxy""" |
| 125 | config = await self.db.get_proxy_config() |
| 126 | if config and config.media_proxy_enabled and config.media_proxy_url: |
| 127 | return config.media_proxy_url |
| 128 | return await self.get_request_proxy_url() |
| 129 | |
| 130 | async def update_proxy_config( |
| 131 | self, |
no test coverage detected