teste login
This commit is contained in:
1 parent
22b998796c
commit
53d65b6f91
3 files changed
+68
-60
No files matched your search
@@ -413,6 +413,11 @@ def upload_sample_standalone():
|
||||
return jsonify({'error': 'Erro no arquivo'}), 400
|
||||
|
||||
if __name__ == "__main__":
|
||||
context = (CERT_PATH, KEY_PATH) if os.path.exists(CERT_PATH) else "adhoc"
|
||||
# Escuta em 0.0.0.0
|
||||
app.run(host="0.0.0.0", port=33002, ssl_context=context, debug=True)
|
||||
# Se estiver rodando atrás do Apache, NÃO use ssl_context.
|
||||
# O Apache já cuida do SSL (https://alice.ufsj.edu.br).
|
||||
# O Flask deve rodar em HTTP puro localmente.
|
||||
|
||||
print("Iniciando servidor na porta 33002 (HTTP Mode)...")
|
||||
app.run(host="0.0.0.0", port=33002, debug=True)
|
||||
|
||||
# Removi o ssl_context=context para facilitar o proxy reverso
|
||||
Reference in new issue
Block a user