File: advanced.md

package info (click to toggle)
toot 0.51.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,108 kB
  • sloc: python: 9,284; makefile: 41
file content (39 lines) | stat: -rw-r--r-- 1,031 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Advanced usage
==============

Disabling HTTPS
---------------

You may pass the `--disable-https` flag to use unencrypted HTTP instead of
HTTPS for a given instance. This is inherently insecure and should be used only
when connecting to local development instances.

```sh
toot login --disable-https --instance localhost:8080
```

Using proxies
-------------

You can configure proxies by setting the `HTTPS_PROXY` or `HTTP_PROXY`
environment variables. This will cause all http(s) requests to be proxied
through the specified server.

For example:

```sh
export HTTPS_PROXY="http://1.2.3.4:5678"
toot login --instance mastodon.social
```

**NB:** This feature is provided by
[requests](http://docs.python-requests.org/en/master/user/advanced/#proxies>)
and setting the environment variable will affect other programs using this
library.

This environment can be set for a single call to toot by prefixing the command
with the environment variable:

```
HTTPS_PROXY="http://1.2.3.4:5678" toot login --instance mastodon.social
```