Skip to content

Commit 85c25d3

Browse files
committed
udated README with firewall setup instructions
1 parent 3f7b457 commit 85c25d3

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

appengine/standard/xmpp_wikibot/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ You should also download the [Google Cloud SDK](https://cloud.google.com/sdk/).
2626
It will allow you to access many of the features of Google Compute Engine via
2727
your local machine.
2828

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.
2938

3039
### Installing files and dependencies
3140

appengine/standard/xmpp_wikibot/wikibot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def send_message():
5555
return 'message failed to send'
5656

5757
def run_server():
58-
app.run(threaded=False, use_reloader=False)
58+
app.run(threaded=False, use_reloader=False, host='0.0.0.0')
5959

6060
class UncycloBot(sleekxmpp.ClientXMPP):
6161

0 commit comments

Comments
 (0)