commit 6fe31dd

default  ·  2024-01-03 11:48:57 +0000 UTC
parent e003f87
Added example configuration for the Apache2 server.
1 files changed,  +40, -0
+40, -0
 1@@ -363,6 +363,8 @@ snac httpd /home/snacusr/fedidata
 2 Edit the nginx configuration and add the following snippet to the
 3 example.com server section:
 4 .Bd -literal -offset indent
 5+# nginx configuration example
 6+
 7 # main web access point
 8 location /fedi {
 9     proxy_pass http://localhost:8001;
10@@ -401,6 +403,42 @@ credentials defined for this user. Search people, start following
11 them, engage in arid discussions and generally enjoy the frustrating
12 experience of Social Media.
13 .Pp
14+This is an example of a similar configuration for the Apache2 web server:
15+.Bd -literal -offset indent
16+# apache2 configuration example
17+
18+ProxyPreserveHost On
19+
20+# Main web access point
21+<Location /social>
22+    ProxyPass http://127.0.0.1:8001/social
23+</Location>
24+
25+# WebFinger
26+<Location /.well-known/webfinger>
27+    ProxyPass http://127.0.0.1:8001/.well-known/webfinger
28+</Location>
29+
30+# NodeInfo (optional)
31+<Location /.well-known/nodeinfo>
32+    ProxyPass http://127.0.0.1:8001/.well-known/nodeinfo
33+</Location>
34+
35+# Mastodon API (entry points)
36+<Location /api/v1/>
37+    ProxyPass http://127.0.0.1:8001/api/v1/
38+</Location>
39+
40+<Location /api/v2/>
41+    ProxyPass http://127.0.0.1:8001/api/v2/
42+</Location>
43+
44+# Mastodon API (OAuth support)
45+<Location /oauth>
46+    ProxyPass http://127.0.0.1:8001/oauth
47+</Location>
48+.Ed
49+.Pp
50 Since version 2.43,
51 .Nm
52 supports communicating from / to the front end http server using the FastCGI
53@@ -422,6 +460,8 @@ under OpenBSD's native httpd, given that it's natively implemented there
54 and you no longer need to configure the complicated relayd server. This is
55 an example:
56 .Bd -literal -offset indent
57+# OpenBSD httpd configuration example
58+
59 # other server configuration
60 [...]
61