mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-12-22 08:44:28 +01:00
Add Picoshare
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
d7a36310ec
commit
5b48945835
2
Makefile
2
Makefile
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
DOCKER := docker
|
DOCKER := docker
|
||||||
|
|
||||||
PROFILES := caddy wordpress adminer syncthing uptime-kuma jellyfin qbittorrent psitransfer gitea it-tools privatebin homepage yacht projectsend
|
PROFILES := caddy wordpress adminer syncthing uptime-kuma jellyfin qbittorrent psitransfer gitea it-tools privatebin homepage yacht projectsend picoshare
|
||||||
PROFILE_CMD := $(addprefix --profile ,$(PROFILES))
|
PROFILE_CMD := $(addprefix --profile ,$(PROFILES))
|
||||||
|
|
||||||
# gitea-runner transmission dozzle watchtower
|
# gitea-runner transmission dozzle watchtower
|
||||||
|
@ -82,6 +82,7 @@ And then, caddy will generate the certificate for you and renew it automatically
|
|||||||
| [privatebin.bensuperpc.org](https://privatebin.bensuperpc.org) | Sub | Pastebin |
|
| [privatebin.bensuperpc.org](https://privatebin.bensuperpc.org) | Sub | Pastebin |
|
||||||
| [yacht.bensuperpc.org](https://yacht.bensuperpc.org) | Sub | Web interface for managing docker containers |
|
| [yacht.bensuperpc.org](https://yacht.bensuperpc.org) | Sub | Web interface for managing docker containers |
|
||||||
| [projectsend.bensuperpc.org](https://projectsend.bensuperpc.org) | Sub | ProjectSend for file sharing |
|
| [projectsend.bensuperpc.org](https://projectsend.bensuperpc.org) | Sub | ProjectSend for file sharing |
|
||||||
|
| [picoshare.bensuperpc.org](https://picoshare.bensuperpc.org) | Sub | Picoshare for file sharing |
|
||||||
| bensuperpc.com | Main | Redirect to bensuperpc.org |
|
| bensuperpc.com | Main | Redirect to bensuperpc.org |
|
||||||
| bensuperpc.fr | Main | Redirect to bensuperpc.org |
|
| bensuperpc.fr | Main | Redirect to bensuperpc.org |
|
||||||
| bensuperpc.net | Main | Redirect to bensuperpc.org |
|
| bensuperpc.net | Main | Redirect to bensuperpc.org |
|
||||||
@ -170,6 +171,12 @@ MARIADB_PASSWORD=wdSUa1JEZhXie5AJ5NcX1w73xmpO12EY
|
|||||||
MARIADB_DATABASE=projectsend
|
MARIADB_DATABASE=projectsend
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For [picoshare.env](infrastructure/picoshare/env/picoshare.env) file, you need to change the secret key.
|
||||||
|
|
||||||
|
```sh
|
||||||
|
PS_SHARED_SECRET=CBuS4DJLqIe93xF1KGYRrnhxUFBqLD2n
|
||||||
|
```
|
||||||
|
|
||||||
### Start the infrastructure
|
### Start the infrastructure
|
||||||
|
|
||||||
Start the website with:
|
Start the website with:
|
||||||
@ -210,6 +217,7 @@ You can find all service on this table:
|
|||||||
| Privatebin | Pastebin | [privatebin.bensuperpc.org](https://privatebin.bensuperpc.org) |
|
| Privatebin | Pastebin | [privatebin.bensuperpc.org](https://privatebin.bensuperpc.org) |
|
||||||
| Yacht | Web interface for managing docker containers | [yacht.bensuperpc.org](https://yacht.bensuperpc.org) |
|
| Yacht | Web interface for managing docker containers | [yacht.bensuperpc.org](https://yacht.bensuperpc.org) |
|
||||||
| ProjectSend | ProjectSend for file sharing | [projectsend.bensuperpc.org](https://projectsend.bensuperpc.org) |
|
| ProjectSend | ProjectSend for file sharing | [projectsend.bensuperpc.org](https://projectsend.bensuperpc.org) |
|
||||||
|
| Picoshare | Picoshare for file sharing | [picoshare.bensuperpc.org](https://picoshare.bensuperpc.org) |
|
||||||
|
|
||||||
You can disable some services by removing the service name in PROFILES variable in the [Makefile](Makefile) file.
|
You can disable some services by removing the service name in PROFILES variable in the [Makefile](Makefile) file.
|
||||||
|
|
||||||
@ -243,6 +251,7 @@ To enable the gitea CI: https://medium.com/@lokanx/how-to-build-docker-container
|
|||||||
- [Homepage Tuto](https://belginux.com/installer-homepage-avec-docker/)
|
- [Homepage Tuto](https://belginux.com/installer-homepage-avec-docker/)
|
||||||
- [Yacht](https://yacht.sh/)
|
- [Yacht](https://yacht.sh/)
|
||||||
- [ProjectSend](https://www.projectsend.org/)
|
- [ProjectSend](https://www.projectsend.org/)
|
||||||
|
- [Picoshare](https://github.com/mtlynch/picoshare)
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
@ -87,6 +87,10 @@ psitransfer.bensuperpc.org {
|
|||||||
redir https://transfer.bensuperpc.org{uri} permanent
|
redir https://transfer.bensuperpc.org{uri} permanent
|
||||||
}
|
}
|
||||||
|
|
||||||
|
picoshare.bensuperpc.org {
|
||||||
|
reverse_proxy picoshare:4001
|
||||||
|
}
|
||||||
|
|
||||||
syncthing.bensuperpc.org {
|
syncthing.bensuperpc.org {
|
||||||
reverse_proxy syncthing:8384 {
|
reverse_proxy syncthing:8384 {
|
||||||
header_up Host {upstream_hostport}
|
header_up Host {upstream_hostport}
|
||||||
|
@ -25,11 +25,11 @@
|
|||||||
description: youtube.com
|
description: youtube.com
|
||||||
|
|
||||||
- Friends:
|
- Friends:
|
||||||
- Rickkrict:
|
- Gnous:
|
||||||
- abbr: RK
|
- abbr: Gn
|
||||||
href: https://gnous.eu/
|
href: https://gnous.eu/
|
||||||
description: gnous.eu
|
description: gnous.eu
|
||||||
- Proxy:
|
- Imagisphe:
|
||||||
- abbr: IM
|
- abbr: IM
|
||||||
href: https://imagisphe.re/
|
href: https://imagisphe.re/
|
||||||
description: imagisphe.re
|
description: imagisphe.re
|
||||||
|
@ -41,6 +41,12 @@
|
|||||||
description: PsiTransfer
|
description: PsiTransfer
|
||||||
ping: psitransfer.bensuperpc.org
|
ping: psitransfer.bensuperpc.org
|
||||||
container: psitransfer
|
container: psitransfer
|
||||||
|
- picoshare:
|
||||||
|
# icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/picoshare.png
|
||||||
|
href: https://picoshare.bensuperpc.org/
|
||||||
|
description: PicoShare
|
||||||
|
ping: picoshare.bensuperpc.org
|
||||||
|
container: picoshare
|
||||||
- privatebin:
|
- privatebin:
|
||||||
icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/privatebin.png
|
icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/privatebin.png
|
||||||
href: https://privatebin.bensuperpc.org/
|
href: https://privatebin.bensuperpc.org/
|
||||||
|
31
infrastructure/picoshare/docker-compose.picoshare.yml
Normal file
31
infrastructure/picoshare/docker-compose.picoshare.yml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
services:
|
||||||
|
# picoshare
|
||||||
|
picoshare:
|
||||||
|
image: mtlynch/picoshare:latest
|
||||||
|
container_name: picoshare
|
||||||
|
profiles:
|
||||||
|
- picoshare
|
||||||
|
restart: on-failure:5
|
||||||
|
depends_on:
|
||||||
|
- caddy
|
||||||
|
env_file:
|
||||||
|
- ./picoshare/env/picoshare.env
|
||||||
|
volumes:
|
||||||
|
- picoshare_data:/data
|
||||||
|
networks:
|
||||||
|
- infra-network
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
read_only: true
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpus: '0.5'
|
||||||
|
memory: 512M
|
||||||
|
reservations:
|
||||||
|
cpus: '0.001'
|
||||||
|
memory: 20M
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
picoshare_data:
|
||||||
|
name: picoshare_data
|
3
infrastructure/picoshare/env/picoshare.env
vendored
Normal file
3
infrastructure/picoshare/env/picoshare.env
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
PS_SHARED_SECRET=CBuS4DJLqIe93xF1KGYRrnhxUFBqLD2n
|
||||||
|
PORT=4001
|
||||||
|
PS_BEHIND_PROXY=true
|
Loading…
Reference in New Issue
Block a user