diff options
| author | lost+skunk <[email protected]> | 2024-08-01 22:48:05 +0300 |
|---|---|---|
| committer | lost+skunk <[email protected]> | 2024-08-01 22:48:05 +0300 |
| commit | c5514c3875b9b782688047d547dfd6663a5b77bb (patch) | |
| tree | e9b8dc3f90aa6b09b8f5006f1e4d16e2bf4718c3 /SETUP.md | |
| parent | 2dfeaae772e630ae361a35bf4680257d081560c1 (diff) | |
| download | skunky-art-c5514c3875b9b782688047d547dfd6663a5b77bb.tar.gz skunky-art-c5514c3875b9b782688047d547dfd6663a5b77bb.tar.bz2 skunky-art-c5514c3875b9b782688047d547dfd6663a5b77bb.zip | |
v1.3
Diffstat (limited to 'SETUP.md')
| -rw-r--r-- | SETUP.md | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/SETUP.md b/SETUP.md new file mode 100644 index 0000000..ab30165 --- /dev/null +++ b/SETUP.md @@ -0,0 +1,42 @@ +[Версия на русском языке 🇷🇺](https://git.macaw.me/skunky/SkunkyArt/src/branch/master/SETUP-RU.md) + +# Units +Maximum file size in megabytes, requires numeric value.<br> +Time units: +* `i` — minutes +* `h` — hours +* `w` — weeks +* `m` — months +* `y` — years + +# Config +* `listen` — IP and port to listen on in the following form: ip:port +* `uri` — Instance URI. Example: `"uri":"/art/"` -> https://skunky.ebloid.ru/art/ +* `cache` — Caching system; default is off. + * `enabled` — Caching system state, requires boolean value + * `path` — Path to cache directory, requires absolute filesystem path + * `lifetime` — Cached file life time, requires numeric value, followed by multiplicative suffix (see Time Units for details) + * `max-size` — Maximum file size in megabytes + * `update-interval` — Automatic rotation interval +* `dirs-to-memory` — This setting determines which directories will be copied to RAM when SkunkyArt is started. Mandatory +* `download-proxy` — Proxy address for downloading files. +* `user-agent` — String, which SkunkyArt uses as UA + +# Setting up reverse proxy +Pretty much business as usual, except for the [`X-Forwarded-Proto`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto) header setting. + +Nginx example configuration: +```apache +server { + listen 443 ssl; + server_name skunky.example.com; + + # In case of subdomain, use / instend of ((BASE_URL)) + location ((BASE_URL)) { + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Host $host; + proxy_http_version 1.1; + proxy_pass http://((IP)):((PORT)); + } +} +```
\ No newline at end of file |
