fix: add request header to allow sso

This commit is contained in:
Emmanuel Averty 2024-11-13 20:07:34 +01:00 committed by grosmanal
parent e3137087f2
commit ac5e78c1a1
13 changed files with 14 additions and 15 deletions

View file

@ -34,7 +34,7 @@ Brought to you by an inclusive community under the umbrella of Codeberg e.V., a
- Customize HTML templates, static files and many others. - Customize HTML templates, static files and many others.
**Shipped version:** 9.0.1~ynh1 **Shipped version:** 9.0.1~ynh2
## Screenshots ## Screenshots

View file

@ -34,7 +34,7 @@ Brought to you by an inclusive community under the umbrella of Codeberg e.V., a
- Customize HTML templates, static files and many others. - Customize HTML templates, static files and many others.
**Versión actual:** 9.0.1~ynh1 **Versión actual:** 9.0.1~ynh2
## Capturas ## Capturas

View file

@ -34,7 +34,7 @@ Brought to you by an inclusive community under the umbrella of Codeberg e.V., a
- Customize HTML templates, static files and many others. - Customize HTML templates, static files and many others.
**Paketatutako bertsioa:** 9.0.1~ynh1 **Paketatutako bertsioa:** 9.0.1~ynh2
## Pantaila-argazkiak ## Pantaila-argazkiak

View file

@ -34,7 +34,7 @@ Présenté par une communauté inclusive sous l'égide de Codeberg e.V., une org
- Modèle personnalisé HTML, de fichiers statiques et de nombreux autres. - Modèle personnalisé HTML, de fichiers statiques et de nombreux autres.
**Version incluse:** 9.0.1~ynh1 **Version incluse:** 9.0.1~ynh2
## Captures décran ## Captures décran

View file

@ -34,7 +34,7 @@ Brought to you by an inclusive community under the umbrella of Codeberg e.V., a
- Customize HTML templates, static files and many others. - Customize HTML templates, static files and many others.
**Versión proporcionada:** 9.0.1~ynh1 **Versión proporcionada:** 9.0.1~ynh2
## Capturas de pantalla ## Capturas de pantalla

View file

@ -34,7 +34,7 @@ Brought to you by an inclusive community under the umbrella of Codeberg e.V., a
- Customize HTML templates, static files and many others. - Customize HTML templates, static files and many others.
**Versi terkirim:** 9.0.1~ynh1 **Versi terkirim:** 9.0.1~ynh2
## Tangkapan Layar ## Tangkapan Layar

View file

@ -34,7 +34,7 @@ Brought to you by an inclusive community under the umbrella of Codeberg e.V., a
- Customize HTML templates, static files and many others. - Customize HTML templates, static files and many others.
**Versione pubblicata:** 9.0.1~ynh1 **Versione pubblicata:** 9.0.1~ynh2
## Screenshot ## Screenshot

View file

@ -34,7 +34,7 @@ Brought to you by an inclusive community under the umbrella of Codeberg e.V., a
- Customize HTML templates, static files and many others. - Customize HTML templates, static files and many others.
**Geleverde versie:** 9.0.1~ynh1 **Geleverde versie:** 9.0.1~ynh2
## Schermafdrukken ## Schermafdrukken

View file

@ -34,7 +34,7 @@ Brought to you by an inclusive community under the umbrella of Codeberg e.V., a
- Customize HTML templates, static files and many others. - Customize HTML templates, static files and many others.
**Поставляемая версия:** 9.0.1~ynh1 **Поставляемая версия:** 9.0.1~ynh2
## Снимки экрана ## Снимки экрана

View file

@ -34,7 +34,7 @@ Brought to you by an inclusive community under the umbrella of Codeberg e.V., a
- Customize HTML templates, static files and many others. - Customize HTML templates, static files and many others.
**分发版本:** 9.0.1~ynh1 **分发版本:** 9.0.1~ynh2
## 截图 ## 截图

View file

@ -82,8 +82,6 @@ LEVEL = Warn
[security] [security]
INSTALL_LOCK = true INSTALL_LOCK = true
SECRET_KEY = __SECRET_KEY__ SECRET_KEY = __SECRET_KEY__
REVERSE_PROXY_AUTHENTICATION_USER = REMOTE-USER
REVERSE_PROXY_AUTHENTICATION_EMAIL = EMAIL
REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128 REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128
INTERNAL_TOKEN = __INTERNAL_TOKEN__ INTERNAL_TOKEN = __INTERNAL_TOKEN__

View file

@ -6,7 +6,8 @@ location __PATH__/ {
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $server_name; proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Webauth-User $remote_user;
client_max_body_size 200M; client_max_body_size 200M;

View file

@ -5,7 +5,7 @@ name = "Forgejo"
description.en = "Lightweight software forge" description.en = "Lightweight software forge"
description.fr = "Forge logiciel légère" description.fr = "Forge logiciel légère"
version = "9.0.1~ynh1" version = "9.0.1~ynh2"
maintainers = [ "Emmanuel Averty" ] maintainers = [ "Emmanuel Averty" ]
@ -17,7 +17,7 @@ userdoc = "https://forgejo.org/docs/latest/user/"
code = "https://codeberg.org/forgejo/forgejo" code = "https://codeberg.org/forgejo/forgejo"
[integration] [integration]
yunohost = ">= 11.2" yunohost = ">= 12.0"
architectures = [ "amd64", "arm64", "armhf" ] architectures = [ "amd64", "arm64", "armhf" ]
multi_instance = true multi_instance = true
ldap = true ldap = true