fix: another player see your skin!

This commit is contained in:
2025-07-20 09:12:37 +05:00
parent 39cd14f1d7
commit 75d7e29f6e
5 changed files with 140 additions and 53 deletions

View File

@ -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)
}