Microservice to bring 2FA to self hosted PDSes
at main 894 B view raw
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 /xrpc/com.atproto.server.createAccount 18 path /@atproto/oauth-provider/~api/sign-in 19 } 20 21 handle @gatekeeper { 22 #This is the address for PDS gatekeeper, default is 8080 23 reverse_proxy http://localhost:8080 24 } 25 26 reverse_proxy http://localhost:3000 27 #..here. Copy and paste this replacing the reverse_proxy http://localhost:3000 line 28} 29 30