File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
appengine/standard/xmpp_wikibot Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,15 @@ You should also download the [Google Cloud SDK](https://cloud.google.com/sdk/).
26
26
It will allow you to access many of the features of Google Compute Engine via
27
27
your local machine.
28
28
29
+ ** IMPORTANT** You must enable tcp traffic on port 5000 to send messages to the
30
+ XMPP server. This can be done by running the following SDK commands:
31
+ gcloud config set project <YOUR PROJECT NAME >
32
+
33
+ gcloud compute firewall-rules create wikibot-server-rule --allow tcp:5000 --source-ranges=0.0.0.0/0
34
+
35
+ Or you can create a new firewall rule via the UI in the
36
+ [ Networks] ( https://console.cloud.google.com/networking/networks/list ) section of
37
+ the Google Cloud Console.
29
38
30
39
### Installing files and dependencies
31
40
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def send_message():
55
55
return 'message failed to send'
56
56
57
57
def run_server ():
58
- app .run (threaded = False , use_reloader = False )
58
+ app .run (threaded = False , use_reloader = False , host = '0.0.0.0' )
59
59
60
60
class UncycloBot (sleekxmpp .ClientXMPP ):
61
61
You can’t perform that action at this time.
0 commit comments