2DU пре 9 година
родитељ
комит
2f7d94c7e8
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 1 1
      app.py
  2. 2 1
      set/set.json

+ 1 - 1
app.py

@@ -1615,4 +1615,4 @@ def uncaughtError(error):
     return '<meta http-equiv="refresh" content="0;url=/w/' + parse.quote(data['frontpage']) + '" />'
 
 if __name__ == '__main__':
-    app.run(host = '0.0.0.0', port = 3000)
+    app.run(host = '0.0.0.0', port = int(data['port']))

+ 2 - 1
set/set.json

@@ -8,5 +8,6 @@
 	"frontpage" : "FrontPage",
 	"license" : "CC 0",
 	"key" : "test",
-    "upload" : "2"
+	"upload" : "2",
+	"port" : "3000"
 }