Add ProjectSend

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2024-08-26 22:07:40 +02:00
parent c0aa45026b
commit d7a36310ec
7 changed files with 79 additions and 3 deletions

View File

@ -13,7 +13,7 @@
DOCKER := docker DOCKER := docker
PROFILES := caddy wordpress adminer syncthing uptime-kuma jellyfin qbittorrent psitransfer gitea it-tools privatebin homepage yacht PROFILES := caddy wordpress adminer syncthing uptime-kuma jellyfin qbittorrent psitransfer gitea it-tools privatebin homepage yacht projectsend
PROFILE_CMD := $(addprefix --profile ,$(PROFILES)) PROFILE_CMD := $(addprefix --profile ,$(PROFILES))
# gitea-runner transmission dozzle watchtower # gitea-runner transmission dozzle watchtower

View File

@ -81,6 +81,7 @@ And then, caddy will generate the certificate for you and renew it automatically
| [it-tools.bensuperpc.org](https://it-tools.bensuperpc.org) | Sub | Tools for IT | | [it-tools.bensuperpc.org](https://it-tools.bensuperpc.org) | Sub | Tools for IT |
| [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 |
| 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 |
@ -148,7 +149,7 @@ MYSQL_PASSWORD=K7s5yoHknnEd7vsZoxb8I3dK9mjToF1j
MYSQL_DATABASE=gitea MYSQL_DATABASE=gitea
``` ```
For [psitransfer.env](infrastructure/psitransfer/env/psitransfer.env) file, you need to change the password(s) and user for the database. For [psitransfer.env](infrastructure/psitransfer/env/psitransfer.env) file, you need to change the secret key.
```sh ```sh
PSITRANSFER_ADMIN_PASS=n9jLVNT9QUotTJTT91JqH4GyBTg9pvEn PSITRANSFER_ADMIN_PASS=n9jLVNT9QUotTJTT91JqH4GyBTg9pvEn
@ -160,6 +161,15 @@ For [yacht.env](infrastructure/yacht/env/yacht.env) file, you need to change the
SECRET_KEY=UZvg9nbcGIJlPEB3uI39TAEWyFOz9nm8 SECRET_KEY=UZvg9nbcGIJlPEB3uI39TAEWyFOz9nm8
``` ```
For [projectsend_db.env](infrastructure/projectsend/env/projectsend_db.env) file, you need to change the password(s) and user for the database.
```sh
MARIADB_ROOT_PASSWORD=8O34297GrBfT3Ld34Lfg9mpotmZwbJtt
MARIADB_USER=bensuperpc
MARIADB_PASSWORD=wdSUa1JEZhXie5AJ5NcX1w73xmpO12EY
MARIADB_DATABASE=projectsend
```
### Start the infrastructure ### Start the infrastructure
Start the website with: Start the website with:
@ -199,6 +209,7 @@ You can find all service on this table:
| it-tools | Tools for IT | [it-tools.bensuperpc.org](https://it-tools.bensuperpc.org) | | it-tools | Tools for IT | [it-tools.bensuperpc.org](https://it-tools.bensuperpc.org) |
| 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) |
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.
@ -215,6 +226,7 @@ To enable the gitea CI: https://medium.com/@lokanx/how-to-build-docker-container
- [Docker Hub](https://hub.docker.com/) - [Docker Hub](https://hub.docker.com/)
- [How To Start WordPress with Caddy using Docker Compose](https://minhcung.me/how-to-start-wordpress-with-caddy-using-docker-compose-3d31bb9ef88b) - [How To Start WordPress with Caddy using Docker Compose](https://minhcung.me/how-to-start-wordpress-with-caddy-using-docker-compose-3d31bb9ef88b)
- [Digital Ocean - How To Install WordPress with Docker Compose (nginx)](https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-docker-compose) - [Digital Ocean - How To Install WordPress with Docker Compose (nginx)](https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-docker-compose)
- [Imagisphe](https://imagisphe.re/)
- [Letsencrypt](https://letsencrypt.org/) - [Letsencrypt](https://letsencrypt.org/)
- [Caddy](https://caddyserver.com/) - [Caddy](https://caddyserver.com/)
- [Adminer](https://www.adminer.org/) - [Adminer](https://www.adminer.org/)
@ -230,7 +242,7 @@ To enable the gitea CI: https://medium.com/@lokanx/how-to-build-docker-container
- [ghost](https://ghost.org) - [ghost](https://ghost.org)
- [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/)
- [Imagisphe](https://imagisphe.re/) - [ProjectSend](https://www.projectsend.org/)
## License ## License

View File

@ -117,6 +117,10 @@ yacht.bensuperpc.org {
reverse_proxy yacht:8000 reverse_proxy yacht:8000
} }
projectsend.bensuperpc.org {
reverse_proxy projectsend:80
}
link.bensuperpc.org { link.bensuperpc.org {
# TODO: Use service with database # TODO: Use service with database
# Friendly links # Friendly links
@ -138,6 +142,8 @@ link.bensuperpc.org {
redir /mother https://youtu.be/w3NyycHR3fE?si=rNNSW9zYv0bcO2Eu permanent redir /mother https://youtu.be/w3NyycHR3fE?si=rNNSW9zYv0bcO2Eu permanent
redir /cpu https://www.youtube.com/watch?v=y39D4529FM4 permanent redir /cpu https://www.youtube.com/watch?v=y39D4529FM4 permanent
redir /lechanteur https://youtu.be/HXdP15Ubu6M?si=N0qvhqo--3pmSGmb permanent redir /lechanteur https://youtu.be/HXdP15Ubu6M?si=N0qvhqo--3pmSGmb permanent
redir /nohero https://youtu.be/4DuUejBkMqE?si=bkB8G6PHwCp56jxb permanent
redir /indochine https://youtu.be/M7X6oYg6iro?si=ZRarm3qamTJ8vIJ0 permanent
redir /bna https://youtu.be/3T3ofoKfEoY?si=_7HkGQXMC7rBng8O permanent redir /bna https://youtu.be/3T3ofoKfEoY?si=_7HkGQXMC7rBng8O permanent
redir /jojo https://youtu.be/U0TXIXTzJEY?si=2acWJWX06ju2w4uj permanent redir /jojo https://youtu.be/U0TXIXTzJEY?si=2acWJWX06ju2w4uj permanent
redir /patapon https://youtu.be/H6CbNHLHkmk?si=ZvU8SzrOK-oCUXT5 permanent redir /patapon https://youtu.be/H6CbNHLHkmk?si=ZvU8SzrOK-oCUXT5 permanent

View File

@ -65,6 +65,12 @@
description: Transmission description: Transmission
ping: transmission.bensuperpc.org ping: transmission.bensuperpc.org
container: transmission container: transmission
- projectsend:
icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/png/projectsend.png
href: https://projectsend.bensuperpc.org/
description: ProjectSend
ping: projectsend.bensuperpc.org
container: projectsend
- Utils: - Utils:
- it-tools: - it-tools:

View File

@ -0,0 +1,47 @@
services:
# projectsend
projectsend:
image: linuxserver/projectsend:latest
container_name: projectsend
profiles:
- projectsend
restart: on-failure:5
depends_on:
- caddy
env_file:
- ./projectsend/env/projectsend.env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- projectsend_config:/config
- projectsend_share:/data
networks:
- infra-network
security_opt:
- no-new-privileges:true
# Database projectsend
projectsend_db:
image: mariadb:latest
container_name: projectsend_db
profiles:
- database
- projectsend
depends_on:
- caddy
restart: on-failure:5
volumes:
- projectsend_db:/var/lib/mysql:rw
env_file:
- ./projectsend/env/projectsend_db.env
command: '--default-authentication-plugin=mysql_native_password'
networks:
- infra-network
security_opt:
- no-new-privileges:true
volumes:
projectsend_db:
name: projectsend_db
projectsend_config:
name: projectsend_config
projectsend_share:
name: projectsend_share

View File

@ -0,0 +1 @@
MAX_UPLOAD=50000

View File

@ -0,0 +1,4 @@
MARIADB_ROOT_PASSWORD=8O34297GrBfT3Ld34Lfg9mpotmZwbJtt
MARIADB_USER=bensuperpc
MARIADB_PASSWORD=wdSUa1JEZhXie5AJ5NcX1w73xmpO12EY
MARIADB_DATABASE=projectsend