mirror of
https://github.com/tborychowski/self-hosted-cookbook.git
synced 2025-12-20 02:51:14 +00:00
backup, other
This commit is contained in:
29
apps/other/bitwarden.md
Normal file
29
apps/other/bitwarden.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# Bitwarden
|
||||
Bitwarden is a password manager & vault.<br>
|
||||
|
||||
bitwarden_rs is an unofficial Bitwarden compatible server.
|
||||
|
||||
<br>
|
||||
|
||||
- [Official Bitwarden Site](https://bitwarden.com/)
|
||||
- [bitwarden_rs Github repo](https://github.com/dani-garcia/bitwarden_rs)
|
||||
- [bitwarden_rs Docs](https://github.com/dani-garcia/bitwarden_rs/wiki)
|
||||
|
||||
|
||||
## docker-compose.yml
|
||||
```yml
|
||||
---
|
||||
version: '3'
|
||||
services:
|
||||
bitwarden:
|
||||
image: bitwardenrs/server:latest
|
||||
container_name: bitwarden
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:80"
|
||||
volumes:
|
||||
- ./data:/data/
|
||||
environment:
|
||||
- SIGNUPS_ALLOWED=false
|
||||
- ADMIN_TOKEN=123123123123123123123123123123123123123123
|
||||
```
|
||||
20
apps/other/cockpit.md
Normal file
20
apps/other/cockpit.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Cockpit
|
||||
|
||||
|
||||
- [Github repo](https://github.com/cockpit-project/cockpit)
|
||||
- [Docs](https://cockpit-project.org/running.html#ubuntu)
|
||||
|
||||
|
||||
## Installation
|
||||
```sh
|
||||
sudo apt-get install cockpit
|
||||
```
|
||||
|
||||
Then go to `https://<SERVER IP>:9090`
|
||||
|
||||
|
||||
## Tips & Tricks
|
||||
To remove the cockpit's motd (welcome message) automatically added to every ssh login:
|
||||
```sh
|
||||
sudo rm /etc/motd.d/cockpit
|
||||
```
|
||||
37
apps/other/code.md
Normal file
37
apps/other/code.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# Code Server
|
||||
|
||||
VSCode in the browser!
|
||||
|
||||
<br>
|
||||
|
||||
- [Github repo](https://github.com/cdr/code-server)
|
||||
- [Docker Hub](https://hub.docker.com/r/linuxserver/code-server)
|
||||
|
||||
|
||||
## docker-compose.yml
|
||||
```yml
|
||||
---
|
||||
version: "2.1"
|
||||
services:
|
||||
code-server:
|
||||
image: linuxserver/code-server
|
||||
container_name: code-server
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 3000:8443
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/Dublin
|
||||
# - PASSWORD=password #optional
|
||||
# - SUDO_PASSWORD=password #optional
|
||||
- PROXY_DOMAIN=code.example.com #optional
|
||||
|
||||
# To get extensions from M$ store - add these:
|
||||
- SERVICE_URL=https://marketplace.visualstudio.com/_apis/public/gallery
|
||||
- ITEM_URL=https://marketplace.visualstudio.com/items
|
||||
volumes:
|
||||
- ./config:/config
|
||||
# folder that will show up in the Code file tree
|
||||
- /var/www/project1:/config/workspace/project1
|
||||
```
|
||||
57
apps/other/firefox-sync.md
Normal file
57
apps/other/firefox-sync.md
Normal file
@@ -0,0 +1,57 @@
|
||||
# Firefox Sync Server
|
||||
|
||||
Run-Your-Own Firefox Sync Server.
|
||||
I couldn't make it fully work with MacOS & iOS.
|
||||
|
||||
<br>
|
||||
|
||||
- [Github repo](https://github.com/mozilla-services/syncserver)
|
||||
- [HowTo](https://mozilla-services.readthedocs.io/en/latest/howtos/run-sync-1.5.html)
|
||||
|
||||
|
||||
## docker-compose.yml
|
||||
```yml
|
||||
---
|
||||
version: '3'
|
||||
services:
|
||||
firefox-sync:
|
||||
image: mozilla/syncserver:latest
|
||||
container_name: firefox-sync
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- TZ=Europe/Dublin
|
||||
- SYNCSERVER_PUBLIC_URL=http://localhost:5000
|
||||
- SYNCSERVER_SECRET=0123123123123123123123123123123
|
||||
- SYNCSERVER_SQLURI=sqlite:////data/syncserver.db
|
||||
- SYNCSERVER_BATCH_UPLOAD_ENABLED=true
|
||||
- SYNCSERVER_FORCE_WSGI_ENVIRON=false
|
||||
ports:
|
||||
- "3000:5000"
|
||||
volumes:
|
||||
- ./data:/data
|
||||
```
|
||||
|
||||
## Tips & Tricks
|
||||
|
||||
#### Change in Firefox desktop
|
||||
in `about:config`, change: `identity.sync.tokenserver.uri` to `https://firefox.example.com/token/1.0/sync/1.5`<br>
|
||||
|
||||
(default is `https://token.services.mozilla.com/1.0/sync/1.5`)
|
||||
|
||||
#### Change on iOS
|
||||
1. In `Settings` - tap 5 times on the version number to get into **Debug Mode**
|
||||
2. Go to `Advanced Sync Settings` and enter your sync URL: `https://firefox.example.com/token/1.0/sync/1.5`
|
||||
|
||||
#### Generate secret
|
||||
```sh
|
||||
head -c 20 /dev/urandom | sha1sum
|
||||
```
|
||||
|
||||
#### Test
|
||||
`/usr/local/bin/python -m syncstorage.tests.functional.test_storage --use-token-server http://localhost:5000/token/1.0/sync/1.5`
|
||||
|
||||
#### Remove mozilla hosted data
|
||||
```sh
|
||||
pip install PyFxA
|
||||
python ./bin/delete_user_data.py user@example.com
|
||||
```
|
||||
Reference in New Issue
Block a user