How can I configure a flask for access through an open IP interface?

I cannot allow any methods from the outside via their URL as soon as I set the SERVER_NAME or host property in the bulb. Following is my init configuration:

flask_sqlalchemy import SQLAlchemy
from flask.ext.cors import CORS
__authors__ = 'DarkStar1'

from flask import Flask

app = Flask(__name__)
app.config.from_object('config')
app.config['DEBUG'] = True
app.config['SERVER_NAME'] = '0.0.0.0'
#app.run(host='0.0.0.0')
CORS(app)

db = SQLAlchemy(app)

from oms import user_service, person_service

I can set the DEBUG parameter / property, but am trying to set the host or SERVER_NAME results in all URLs, http: // <hostname>: 5000 / test, for example, 404s. Since the server is a remote dev server, I can tunnel and retrieve 200 seconds on all urls from the jar via localhost. The port is enabled, and the flash version I'm working with is 0.10.1 on python 2.7.6. I have a search and reading of documents to no avail.

+4
source share
1

app.run(host="0.0.0.0:PORT#")

IPv4- ipconfig , ipaddress: port #

, ( ), , download/use https://ngrok.com/ ---- > NaT .

, ,

ngrok http localhost:5000

RANDOMsubdomain.ngrok.io,

+7

All Articles