summaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorFrédéric Mangano-Tarumi <fmang@mg0.fr>2020-06-01 18:49:37 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2021-02-20 17:24:30 +0100
commit5be07a8a9e9777d54cf7122be52aa0a7b1b51e14 (patch)
treea7a64f4f5bbe9e4555d1b358852fd2d92d7837b1 /conf
parentd4abe0b72d1215906806ee84474115961e79f7c0 (diff)
downloadaur-5be07a8a9e9777d54cf7122be52aa0a7b1b51e14.tar.gz
aur-5be07a8a9e9777d54cf7122be52aa0a7b1b51e14.tar.xz
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>
Diffstat (limited to 'conf')
-rw-r--r--conf/config.defaults7
1 files changed, 7 insertions, 0 deletions
diff --git a/conf/config.defaults b/conf/config.defaults
index 86fe765c..ed495168 100644
--- a/conf/config.defaults
+++ b/conf/config.defaults
@@ -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