changing main.py server_addr setting

p2p
quadrismegistus 4 years ago
parent f8edd690c0
commit 4b0ff3aeed

@ -113,7 +113,7 @@ This is configured to use my server. Optionally, you can run your own server:
cd server
./run.sh
```
Change MainApp.app setting in main.py in the client to point to your server. You will need neo4j installed.
Change the SERVER_ADDR constant at the top of client/main.py to point to your server. You will need neo4j installed.
### As user

@ -1,3 +1,9 @@
## CONFIG
# change this to your external ip address for your server
#(needs to be external to allow tor routing)
SERVER_ADDR = '128.232.229.63:5555'
# imports
from kivy.uix.screenmanager import Screen,ScreenManager
from kivymd.app import MDApp
from kivymd.uix.button import MDFillRoundFlatButton, MDIconButton
@ -28,6 +34,9 @@ from kivy.core.text import LabelBase
import shutil
Window.size = (640, 1136) #(2.65 * 200, 5.45 * 200)
def log(x):
@ -79,7 +88,7 @@ def get_tor_python_session():
class MainApp(MDApp):
title = 'Komrade'
#api = 'http://localhost:5555/api'
api = 'http://128.232.229.63:5555/api'
api = 'http://%s/api' % SERVER_ADDR
#api = 'http://komrades.net:5555/api'
logged_in=False
store = JsonStore('komrade.json')

Loading…
Cancel
Save