From 61469161830cdeaca12d7b4d6873f52f50495865 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 5 Jul 2023 00:46:12 +0200 Subject: [PATCH 1/2] [autopatch] Fix Host and X-Forwarded-For header spoofing --- conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index cf97361..c220744 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -4,7 +4,7 @@ location __PATH__/ { proxy_pass http://127.0.0.1:__PORT__/; proxy_pass_request_headers on; proxy_redirect ~^/(.*) $scheme://$http_host__PATH__/$1; - proxy_set_header Host $http_host; + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; From 27cfee568ca71f66990a933f7c1af1904d33f55f Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Tue, 4 Jul 2023 22:46:15 +0000 Subject: [PATCH 2/2] Auto-update README --- README.md | 18 ++++++++++-------- README_fr.md | 32 +++++++++++++++++++------------- 2 files changed, 29 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 6911768..15075d8 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ It shall NOT be edited by hand. # Distbin for YunoHost -[![Integration level](https://dash.yunohost.org/integration/distbin.svg)](https://dash.yunohost.org/appci/app/distbin) ![](https://ci-apps.yunohost.org/ci/badges/distbin.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/distbin.maintain.svg) +[![Integration level](https://dash.yunohost.org/integration/distbin.svg)](https://dash.yunohost.org/appci/app/distbin) ![Working status](https://ci-apps.yunohost.org/ci/badges/distbin.status.svg) ![Maintenance status](https://ci-apps.yunohost.org/ci/badges/distbin.maintain.svg) + [![Install Distbin with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=distbin) *[Lire ce readme en français.](./README_fr.md)* @@ -34,7 +35,7 @@ A networked place to store posted web documents. This is meant to allow for dist ## Screenshots -![](./doc/screenshots/screenshot.PNG) +![Screenshot of Distbin](./doc/screenshots/screenshot.PNG) ## Disclaimers / important information @@ -42,20 +43,21 @@ A networked place to store posted web documents. This is meant to allow for dist ## Documentation and resources -* Official app website: https://distbin.com/about -* Upstream app code repository: https://github.com/gobengo/distbin -* YunoHost documentation for this app: https://yunohost.org/app_distbin -* Report a bug: https://github.com/YunoHost-Apps/distbin_ynh/issues +* Official app website: +* Upstream app code repository: +* YunoHost documentation for this app: +* Report a bug: ## Developer info Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/distbin_ynh/tree/testing). To try the testing branch, please proceed like that. -``` + +``` bash sudo yunohost app install https://github.com/YunoHost-Apps/distbin_ynh/tree/testing --debug or sudo yunohost app upgrade distbin -u https://github.com/YunoHost-Apps/distbin_ynh/tree/testing --debug ``` -**More info regarding app packaging:** https://yunohost.org/packaging_apps \ No newline at end of file +**More info regarding app packaging:** diff --git a/README_fr.md b/README_fr.md index 105aa48..17327e6 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,15 +1,20 @@ + + # Distbin pour YunoHost -[![Niveau d'intégration](https://dash.yunohost.org/integration/distbin.svg)](https://dash.yunohost.org/appci/app/distbin) ![](https://ci-apps.yunohost.org/ci/badges/distbin.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/distbin.maintain.svg) +[![Niveau d’intégration](https://dash.yunohost.org/integration/distbin.svg)](https://dash.yunohost.org/appci/app/distbin) ![Statut du fonctionnement](https://ci-apps.yunohost.org/ci/badges/distbin.status.svg) ![Statut de maintenance](https://ci-apps.yunohost.org/ci/badges/distbin.maintain.svg) + [![Installer Distbin avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=distbin) *[Read this readme in english.](./README.md)* -*[Lire ce readme en français.](./README_fr.md)* -> *Ce package vous permet d'installer Distbin rapidement et simplement sur un serveur YunoHost. -Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.* +> *Ce package vous permet d’installer Distbin rapidement et simplement sur un serveur YunoHost. +Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l’installer et en profiter.* -## Vue d'ensemble +## Vue d’ensemble A distributed pastebin. i.e. it is a service where anyone can post things on the web, and others can react by posting anywhere else on the web (including here). @@ -28,9 +33,9 @@ A networked place to store posted web documents. This is meant to allow for dist **Démo :** https://distbin.com/ -## Captures d'écran +## Captures d’écran -![](./doc/screenshots/screenshot.PNG) +![Capture d’écran de Distbin](./doc/screenshots/screenshot.PNG) ## Avertissements / informations importantes @@ -38,20 +43,21 @@ A networked place to store posted web documents. This is meant to allow for dist ## Documentations et ressources -* Site officiel de l'app : https://distbin.com/about -* Dépôt de code officiel de l'app : https://github.com/gobengo/distbin -* Documentation YunoHost pour cette app : https://yunohost.org/app_distbin -* Signaler un bug : https://github.com/YunoHost-Apps/distbin_ynh/issues +* Site officiel de l’app : +* Dépôt de code officiel de l’app : +* Documentation YunoHost pour cette app : +* Signaler un bug : ## Informations pour les développeurs Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/distbin_ynh/tree/testing). Pour essayer la branche testing, procédez comme suit. -``` + +``` bash sudo yunohost app install https://github.com/YunoHost-Apps/distbin_ynh/tree/testing --debug ou sudo yunohost app upgrade distbin -u https://github.com/YunoHost-Apps/distbin_ynh/tree/testing --debug ``` -**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps \ No newline at end of file +**Plus d’infos sur le packaging d’applications :** \ No newline at end of file