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