Microservice to bring 2FA to self hosted PDSes
1{ 2 email youremail@myemail.com 3 on_demand_tls { 4 ask http://localhost:3000/tls-check 5 } 6} 7 8*.yourpds.com, yourpds.com { 9 tls { 10 on_demand 11 } 12 # You'll most likely just want from here to.... 13 @gatekeeper { 14 path /xrpc/com.atproto.server.getSession 15 path /xrpc/com.atproto.server.updateEmail 16 path /xrpc/com.atproto.server.createSession 17 path /@atproto/oauth-provider/~api/sign-in 18 } 19 20 handle @gatekeeper { 21 #This is the address for PDS gatekeeper, default is 8080 22 reverse_proxy http://localhost:8080 23 } 24 25 reverse_proxy http://localhost:3000 26 #..here. Copy and paste this replacing the reverse_proxy http://localhost:3000 line 27} 28 29