Browse Source

Allow external access by default

You can disable access to port 5000 via firewall. So let the
default flask setting work outside of localhost.

Original Change-Id: I67b79873c6dfca052becba618f693b754855944d

Change-Id: I392faf8f650353f7a4c1e6df177c4090d77c3b92
changes/96/231596/1
Ramy Asselin 4 years ago
parent
commit
bde64a6a1f
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      ciwatch/__init__.py
  2. 1
    1
      run.py

+ 1
- 1
ciwatch/__init__.py View File

@@ -24,7 +24,7 @@ __version__ = "0.0.1"
24 24
 
25 25
 
26 26
 def main():
27
-    app.run(debug=True)
27
+    app.run(debug=True, host='0.0.0.0')
28 28
 
29 29
 
30 30
 if __name__ == '__main__':

+ 1
- 1
run.py View File

@@ -15,4 +15,4 @@
15 15
 import ciwatch
16 16
 
17 17
 if __name__ == "__main__":
18
-    ciwatch.app.run(debug=True)
18
+    ciwatch.app.run(debug=True, host='0.0.0.0')

Loading…
Cancel
Save