website/docs: update nginx config
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		
							
								
								
									
										6
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								Makefile
									
									
									
									
									
								
							| @ -30,6 +30,10 @@ lint: | |||||||
| gen-build: | gen-build: | ||||||
| 	./manage.py spectacular --file schema.yml | 	./manage.py spectacular --file schema.yml | ||||||
|  |  | ||||||
|  | gen-clean: | ||||||
|  | 	rm -rf web/api/src/ | ||||||
|  | 	rm -rf outpost/api/ | ||||||
|  |  | ||||||
| gen-web: | gen-web: | ||||||
| 	docker run \ | 	docker run \ | ||||||
| 		--rm -v ${PWD}:/local \ | 		--rm -v ${PWD}:/local \ | ||||||
| @ -55,7 +59,7 @@ gen-outpost: | |||||||
| 		--additional-properties=packageName=api,enumClassPrefix=true | 		--additional-properties=packageName=api,enumClassPrefix=true | ||||||
| 	rm -f outpost/api/go.mod outpost/api/go.sum | 	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: | run: | ||||||
| 	go run -v cmd/server/main.go | 	go run -v cmd/server/main.go | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| openapi: 3.0.3 | openapi: 3.0.3 | ||||||
| info: | info: | ||||||
|   title: authentik |   title: authentik | ||||||
|   version: 2021.5.2 |   version: 2021.5.3 | ||||||
|   description: Making authentication simple. |   description: Making authentication simple. | ||||||
|   contact: |   contact: | ||||||
|     email: hello@beryju.org |     email: hello@beryju.org | ||||||
| @ -14933,7 +14933,7 @@ components: | |||||||
|           maxLength: 200 |           maxLength: 200 | ||||||
|         meta_icon: |         meta_icon: | ||||||
|           type: string |           type: string | ||||||
|           format: uri |           nullable: true | ||||||
|           readOnly: true |           readOnly: true | ||||||
|         meta_description: |         meta_description: | ||||||
|           type: string |           type: string | ||||||
| @ -16143,9 +16143,8 @@ components: | |||||||
|             flow is redirect to when an un-authenticated user visits authentik. |             flow is redirect to when an un-authenticated user visits authentik. | ||||||
|         background: |         background: | ||||||
|           type: string |           type: string | ||||||
|           format: uri |           nullable: true | ||||||
|           readOnly: true |           readOnly: true | ||||||
|           description: Background shown during execution |  | ||||||
|         stages: |         stages: | ||||||
|           type: array |           type: array | ||||||
|           items: |           items: | ||||||
| @ -21867,6 +21866,7 @@ components: | |||||||
|       - component |       - component | ||||||
|       - name |       - name | ||||||
|       - pk |       - pk | ||||||
|  |       - plex_token | ||||||
|       - slug |       - slug | ||||||
|       - verbose_name |       - verbose_name | ||||||
|       - verbose_name_plural |       - verbose_name_plural | ||||||
| @ -21918,6 +21918,7 @@ components: | |||||||
|           description: Plex token used to check firends |           description: Plex token used to check firends | ||||||
|       required: |       required: | ||||||
|       - name |       - name | ||||||
|  |       - plex_token | ||||||
|       - slug |       - slug | ||||||
|     PlexTokenRedeemRequest: |     PlexTokenRedeemRequest: | ||||||
|       type: object |       type: object | ||||||
|  | |||||||
| @ -46,7 +46,7 @@ export class PlexSourceForm extends ModelForm<PlexSource, string> { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     send = (data: PlexSource): Promise<PlexSource> => { |     send = (data: PlexSource): Promise<PlexSource> => { | ||||||
|         data.plexToken = this.plexToken; |         data.plexToken = this.plexToken || ""; | ||||||
|         if (this.instance?.slug) { |         if (this.instance?.slug) { | ||||||
|             return new SourcesApi(DEFAULT_CONFIG).sourcesPlexUpdate({ |             return new SourcesApi(DEFAULT_CONFIG).sourcesPlexUpdate({ | ||||||
|                 slug: this.instance.slug, |                 slug: this.instance.slug, | ||||||
|  | |||||||
| @ -31,10 +31,9 @@ server { | |||||||
|  |  | ||||||
|     # Proxy site |     # Proxy site | ||||||
|     location / { |     location / { | ||||||
|         proxy_pass https://<hostname of your authentik server>; |         proxy_pass https://<hostname of your authentik server>:9443; | ||||||
|         proxy_http_version 1.1; |         proxy_http_version 1.1; | ||||||
|         proxy_set_header X-Forwarded-Proto https; |         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; |         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||||||
|         # This needs to be set inside the location block, very important. |         # This needs to be set inside the location block, very important. | ||||||
|         proxy_set_header Host $host; |         proxy_set_header Host $host; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer