--- title: Pastefy created: 2026-06-08 updated: 2026-06-08 type: app tags: [catalogue, pastebin, self-hosted] confidence: high contested: false sources: [https://selfh.st/apps/?tag=33, https://github.com/interaapps/pastefy] --- # 📋 Pastefy > **Pastefy** est un pastebin Java moderne et complet, avec multi-utilisateurs, organisation par dossiers, syntax highlighting avancĂ© et API REST. ## 📋 Informations GĂ©nĂ©rales | MĂ©tadonnĂ©e | Valeur | | :--- | :--- | | **Site web** | https://github.com/interaapps/pastefy | | **GitHub** | https://github.com/interaapps/pastefy | | **License** | AGPL-3.0 | | **Langage principal** | Java | | **Étoiles GitHub** | 432 | | **DerniĂšre MAJ** | 2026-06-01 | | **CatĂ©gorie** | [[cat-pastebin]] | ## 📝 Description Pastefy est un pastebin moderne dĂ©veloppĂ© par interaapps, Ă©crit en Java (Spring Boot) cĂŽtĂ© backend et Vue.js cĂŽtĂ© frontend. Le projet se distingue par sa gestion **multi-utilisateurs** avec organisation par dossiers, ce qui le rapproche davantage d'un **gestionnaire de snippets d'Ă©quipe** que d'un simple pastebin jetable. L'application supporte la crĂ©ation de pastes avec syntax highlighting pour 100+ langages, organisation par dossiers et tags, partage public/privĂ©, expiration temporelle, paste multi-fichiers (similaire Ă  un mini-projet), fork de pastes publics, et un systĂšme de likes. L'authentification peut ĂȘtre locale (email/password) ou OAuth (Google, GitHub, Discord). L'API REST est complĂšte et bien documentĂ©e. L'Ă©cosystĂšme comprend des intĂ©grations navigateur (extension Chrome/Firefox) et une CLI officielle. C'est un bon choix pour les **Ă©quipes de dĂ©veloppement** qui veulent un outil de partage de code auto-hĂ©bergĂ©, structurĂ© et collaboratif, dans un stack Java Ă©prouvĂ©. ## 🚀 Installation ### Docker Compose (recommandĂ©) ```yaml services: pastefy: image: interaapps/pastefy:latest container_name: pastefy restart: unless-stopped networks: - web - internal environment: - PASTEFY_BASE_URL=https:...om - PASTEFY_FRONTEND_URL=https:...om - PASTEFY_DATABASE_URL=jdbc:postgresql://db:5432/pastefy - PASTEFY_DATABASE_USERNAME=pastefy - PASTEFY_DATABASE_PASSWORD=*** - PASTEFY_SECRET=*** - PASTEFY_MAIL_HOST=smtp.example.com labels: - "traefik.enable=true" - "traefik.http.routers.pastefy.rule=Host(`paste.example.com`)" - "traefik.http.routers.pastefy.tls.certresolver=letsencrypt" - "traefik.http.services.pastefy.loadbalancer.server.port=8080" depends_on: - db db: image: postgres:16-alpine restart: unless-stopped networks: - internal environment: - POSTGRES_USER=pastefy - POSTGRES_PASSWORD=*** - POSTGRES_DB=pastefy volumes: - pastefy-db:/var/lib/postgresql/data networks: web: external: true internal: volumes: pastefy-db: ``` ### Installation manuelle 1. `git clone https://github.com/interaapps/pastefy.git` 2. PrĂ©requis : Java 21+, Maven, PostgreSQL 13+. 3. Compiler : `mvn clean package` 4. Configurer `application.yml` puis lancer le JAR. ## ⚙ Configuration - `PASTEFY_SECRET` : chaĂźne alĂ©atoire pour les sessions. - `PASTEFY_BASE_URL` : URL publique du backend. - `PASTEFY_FRONTEND_URL` : URL publique du frontend. - Configurer OAuth (Google, GitHub, Discord) si besoin d'auth externe. - Brancher un SMTP pour les notifications et rĂ©cupĂ©rations de mot de passe. ## 🔄 Alternatives ### Open Source - [[app-opengist]] — Go, multi-user, snippets Git-like. - [[app-privatebin]] — PHP, E2E, plus minimaliste. - [[app-paaster]] — TypeScript, E2E, multi-user, plus jeune. - [[app-chiyogami]] — Go + E2E, interface moderne. - [[app-wastebin]] — Go, minimaliste, sans multi-user. ### PropriĂ©taires (ce que cette app remplace) - **gist.github.com** — snippets GitHub, privĂ© si compte GH, public sinon. - **gitlab.com/snippets** — snippets GitLab, intĂ©grĂ© au forge. - **pastebin.com** — historique, UI vieillissante. - **hastebin.com** — simple, pas de chiffrement. ## 🔐 SĂ©curitĂ© - **PASTEFY_SECRET** : chaĂźne alĂ©atoire longue, Ă  protĂ©ger. - **HTTPS strict** : service exposĂ©, ne jamais servir en HTTP. - **OAuth providers** : limiter les providers autorisĂ©s en production. - **Backups Postgres** : la base de pastes et d'utilisateurs doit ĂȘtre sauvegardĂ©e. - **Rate limit** : Ă  activer sur l'API pour bloquer les abus. - **Updates Java** : Spring Boot 3+ doit ĂȘtre maintenu Ă  jour. ## 📚 Ressources - Site officiel : https://github.com/interaapps/pastefy - Code source : https://github.com/interaapps/pastefy - Documentation : https://github.com/interaapps/pastefy#readme - API : https://github.com/interaapps/pastefy/blob/master/docs/api.md - CommunautĂ© : https://github.com/interaapps/pastefy/discussions ## Pages LiĂ©es - [[cat-pastebin|Pastebin]] — CatĂ©gorie complĂšte - [[app-opengist]] — Voisin multi-user - [[app-paaster]] — Voisin moderne E2E - [[recettes-docker-compose]] — Templates Docker