mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
aurweb.spawn: Integrate FastAPI and nginx
aurweb.spawn used to launch only PHP’s built-in server. Now it spawns a dummy FastAPI application too. Since both stacks spawn their own HTTP server, aurweb.spawn also spawns nginx as a reverse proxy to mount them under the same base URL, defined by aur_location in the configuration. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
e19afce108
commit
9cc71e497b
5 changed files with 86 additions and 14 deletions
|
@ -41,9 +41,16 @@ cache = none
|
|||
cache_pkginfo_ttl = 86400
|
||||
memcache_servers = 127.0.0.1:11211
|
||||
|
||||
[php]
|
||||
; Address PHP should bind when spawned in development mode by aurweb.spawn.
|
||||
bind_address = 127.0.0.1:8081
|
||||
; Directory containing aurweb's PHP code, required by aurweb.spawn.
|
||||
;htmldir = /path/to/web/html
|
||||
|
||||
[fastapi]
|
||||
; Address uvicorn should bind when spawned in development mode by aurweb.spawn.
|
||||
bind_address = 127.0.0.1:8082
|
||||
|
||||
[ratelimit]
|
||||
request_limit = 4000
|
||||
window_length = 86400
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue