Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mtlynch/syncthing-fly.io
Deploy a syncthing instance to fly.io
https://github.com/mtlynch/syncthing-fly.io
Last synced: 24 days ago
JSON representation
Deploy a syncthing instance to fly.io
- Host: GitHub
- URL: https://github.com/mtlynch/syncthing-fly.io
- Owner: mtlynch
- License: mit
- Created: 2023-05-21T16:28:56.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-27T22:43:12.000Z (6 months ago)
- Last Synced: 2024-04-27T23:28:53.257Z (6 months ago)
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# syncthing-fly.io
[![CircleCI](https://circleci.com/gh/mtlynch/syncthing-fly.io.svg?style=svg)](https://circleci.com/gh/mtlynch/syncthing-fly.io)
[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](LICENSE)## Overview
Syncthing configuration for fly.io.
## Deploy
### Pre-requisites
You'll need:
- A fly.io account (with billing activated)
- The `fly` CLI [already installed](https://fly.io/docs/getting-started/installing-flyctl/) and authenticated on your machine## Create your app
```bash
# You can change this to any region from https://fly.io/docs/reference/regions/
REGION="ewr"RANDOM_SUFFIX="$(head /dev/urandom | tr -dc 'a-z0-9' | head -c 6 ; echo '')"
APP_NAME="syncthing-${RANDOM_SUFFIX}"fly apps create --name "${APP_NAME}"
```## Create a persistent volume
```bash
VOLUME_NAME="syncthing" # Must match fly.toml.
SIZE_IN_GB=3fly volumes create "${VOLUME_NAME}" \
--region "${REGION}" \
--size "${SIZE_IN_GB}" \
--yes
```## Deploy
Finally, it's time to deploy your app.
```bash
fly deploy
```## Access web UI
Open fly console:
```bash
fly ssh console
```Use socat to proxy IPv4 to IPv6:
```bash
apk add socat && \
socat TCP6-LISTEN:8386,fork,su=nobody TCP4:localhost:8384
```Open a fly proxy to 8386:
```bash
fly proxy 8384:8386
```Open web UI: