fix: another player see your skin!
This commit is contained in:
@ -4,15 +4,29 @@ router = APIRouter(tags=["Meta"])
|
||||
|
||||
@router.get("/")
|
||||
def api_root():
|
||||
return {
|
||||
"meta": {
|
||||
"serverName": "Your Auth Server",
|
||||
"implementationName": "FastAPI",
|
||||
"implementationVersion": "1.0.0",
|
||||
"links": {
|
||||
"homepage": "https://your-server.com"
|
||||
# Читаем публичный ключ из файла
|
||||
public_key_path = "app/keys/public_key.pem"
|
||||
|
||||
try:
|
||||
with open(public_key_path, "r") as f:
|
||||
public_key = f.read().strip()
|
||||
|
||||
return {
|
||||
"meta": {
|
||||
"serverName": "Popa Auth Server",
|
||||
"implementationName": "FastAPI",
|
||||
"implementationVersion": "1.0.0",
|
||||
"links": {
|
||||
"homepage": "https://popa-popa.ru"
|
||||
}
|
||||
},
|
||||
},
|
||||
"skinDomains": ["147.78.65.214"],
|
||||
"capeDomains": ["147.78.65.214"]
|
||||
}
|
||||
"skinDomains": ["147.78.65.214"],
|
||||
"capeDomains": ["147.78.65.214"],
|
||||
# Важно - возвращаем ключ как есть, без дополнительной обработки
|
||||
"signaturePublickey": public_key
|
||||
}
|
||||
except Exception as e:
|
||||
return {
|
||||
"error": str(e),
|
||||
"traceback": str(e)
|
||||
}
|
||||
|
Reference in New Issue
Block a user