website/docs: update nginx config

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-05-20 22:06:55 +02:00
parent 7666c246c3
commit b3390f0ab4
4 changed files with 12 additions and 8 deletions

View file

@ -30,6 +30,10 @@ lint:
gen-build:
./manage.py spectacular --file schema.yml
gen-clean:
rm -rf web/api/src/
rm -rf outpost/api/
gen-web:
docker run \
--rm -v ${PWD}:/local \
@ -55,7 +59,7 @@ gen-outpost:
--additional-properties=packageName=api,enumClassPrefix=true
rm -f outpost/api/go.mod outpost/api/go.sum
gen: gen-build gen-web gen-outpost
gen: gen-build gen-clean gen-web gen-outpost
run:
go run -v cmd/server/main.go

View file

@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: authentik
version: 2021.5.2
version: 2021.5.3
description: Making authentication simple.
contact:
email: hello@beryju.org
@ -14933,7 +14933,7 @@ components:
maxLength: 200
meta_icon:
type: string
format: uri
nullable: true
readOnly: true
meta_description:
type: string
@ -16143,9 +16143,8 @@ components:
flow is redirect to when an un-authenticated user visits authentik.
background:
type: string
format: uri
nullable: true
readOnly: true
description: Background shown during execution
stages:
type: array
items:
@ -21867,6 +21866,7 @@ components:
- component
- name
- pk
- plex_token
- slug
- verbose_name
- verbose_name_plural
@ -21918,6 +21918,7 @@ components:
description: Plex token used to check firends
required:
- name
- plex_token
- slug
PlexTokenRedeemRequest:
type: object

View file

@ -46,7 +46,7 @@ export class PlexSourceForm extends ModelForm<PlexSource, string> {
}
send = (data: PlexSource): Promise<PlexSource> => {
data.plexToken = this.plexToken;
data.plexToken = this.plexToken || "";
if (this.instance?.slug) {
return new SourcesApi(DEFAULT_CONFIG).sourcesPlexUpdate({
slug: this.instance.slug,

View file

@ -31,10 +31,9 @@ server {
# Proxy site
location / {
proxy_pass https://<hostname of your authentik server>;
proxy_pass https://<hostname of your authentik server>:9443;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Port 443;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# This needs to be set inside the location block, very important.
proxy_set_header Host $host;