diff --git a/Makefile b/Makefile index 5cb2886b9..8a060c8bd 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/schema.yml b/schema.yml index bc2fdbe67..0072788e9 100644 --- a/schema.yml +++ b/schema.yml @@ -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 diff --git a/web/src/pages/sources/plex/PlexSourceForm.ts b/web/src/pages/sources/plex/PlexSourceForm.ts index c55380800..ecce835cf 100644 --- a/web/src/pages/sources/plex/PlexSourceForm.ts +++ b/web/src/pages/sources/plex/PlexSourceForm.ts @@ -46,7 +46,7 @@ export class PlexSourceForm extends ModelForm { } send = (data: PlexSource): Promise => { - data.plexToken = this.plexToken; + data.plexToken = this.plexToken || ""; if (this.instance?.slug) { return new SourcesApi(DEFAULT_CONFIG).sourcesPlexUpdate({ slug: this.instance.slug, diff --git a/website/docs/installation/reverse-proxy.md b/website/docs/installation/reverse-proxy.md index ad06092ce..64b023adf 100644 --- a/website/docs/installation/reverse-proxy.md +++ b/website/docs/installation/reverse-proxy.md @@ -31,10 +31,9 @@ server { # Proxy site location / { - proxy_pass https://; + proxy_pass https://: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;