summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authors7hoang2022-01-15 01:49:25 -0500
committers7hoang2022-01-15 01:49:25 -0500
commit74683f67215a74b3ffcb050b61437fe755b471fe (patch)
treeafb818f6022229656497de18a670e0a692b599eb
parent1cf6a0ca6ea21607904d3f3ac7f7426a020ad42c (diff)
downloadaur-74683f67215a74b3ffcb050b61437fe755b471fe.tar.gz
Change Plugin Ports To Point To Nginx Server By Default
Just a potential point of friction that could be reduced. The client application should be directed to the nginx server at 27701 which redirects the request to the proper server at 27702. With these changes the plugins will be already point the client at the nginx server whereas it was pointing at the anki server directly prior.
-rw-r--r--anki2.0.py4
-rw-r--r--anki2.1.28.py2
-rw-r--r--anki2.1.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/anki2.0.py b/anki2.0.py
index cbcb109fa031..773fa2ac3753 100644
--- a/anki2.0.py
+++ b/anki2.0.py
@@ -1,3 +1,3 @@
import anki.sync
-anki.sync.SYNC_BASE = 'http://0.0.0.0:27702/'
-anki.sync.SYNC_MEDIA_BASE = 'http://0.0.0.0:27702/msync/'
+anki.sync.SYNC_BASE = 'http://0.0.0.0:27701/'
+anki.sync.SYNC_MEDIA_BASE = 'http://0.0.0.0:27701/msync/'
diff --git a/anki2.1.28.py b/anki2.1.28.py
index fa03e266b50e..922f75cca399 100644
--- a/anki2.1.28.py
+++ b/anki2.1.28.py
@@ -1,5 +1,5 @@
import os
-addr = "http://0.0.0.0:27702/" # put your server address here
+addr = "http://0.0.0.0:27701/" # put your server address here
os.environ["SYNC_ENDPOINT"] = addr + "sync/"
os.environ["SYNC_ENDPOINT_MEDIA"] = addr + "msync/"
diff --git a/anki2.1.py b/anki2.1.py
index 1eac30427183..6adb84d54363 100644
--- a/anki2.1.py
+++ b/anki2.1.py
@@ -1,6 +1,6 @@
import anki.sync, anki.hooks, aqt
-addr = "http://0.0.0.0:27702/" # put your server address here
+addr = "http://0.0.0.0:27701/" # put your server address here
anki.sync.SYNC_BASE = "%s" + addr
def resetHostNum():
aqt.mw.pm.profile['hostNum'] = None