2 Commits

Author SHA1 Message Date
  Ivars e9d1e7dac3 Pēdējā strādājošā versija 5 years ago
  Ivars 5c6928d2f6 sasinhronizēts ar strādājošo versiju (iespējamās kļūdas novērstas) 5 years ago
2 changed files with 4 additions and 2 deletions
  1. 4
    2
      ltcproxy.py
  2. 0
    0
      ltcproxy0.cfg

+ 4
- 2
ltcproxy.py View File

37
 if not os.path.exists(cache_dir):
37
 if not os.path.exists(cache_dir):
38
     os.mkdir(cache_dir)
38
     os.mkdir(cache_dir)
39
 
39
 
40
+CFG_FILE = "ltcproxy.cfg" # TODO - iespēja uzdot kā parametru
40
 config = ConfigParser.ConfigParser()
41
 config = ConfigParser.ConfigParser()
41
-proxy_cfg_file = os.path.join(cur_directory, "ltcproxy.cfg")
42
+proxy_cfg_file = os.path.join(cur_directory, CFG_FILE)
42
 
43
 
43
 DEBUG = False
44
 DEBUG = False
44
 PORT_NUMBER = 8881
45
 PORT_NUMBER = 8881
45
 REDIRECT = False
46
 REDIRECT = False
46
 CACHE = True
47
 CACHE = True
47
-KEY = ["1234","3786"]
48
+KEY = ["0000","00000"]
48
 SERVER = "wsgiref"
49
 SERVER = "wsgiref"
49
 WORKERS = 10
50
 WORKERS = 10
50
 LTC_USER = "user"
51
 LTC_USER = "user"
441
 # Run WSGI server
442
 # Run WSGI server
442
 def start(server,port):
443
 def start(server,port):
443
     print "*** Starting ltcproxy ***"
444
     print "*** Starting ltcproxy ***"
445
+    print "LTC_USER: %s"% LTC_USER
444
     options = {}
446
     options = {}
445
     if server == "mtwsgi":
447
     if server == "mtwsgi":
446
         import mtwsgi
448
         import mtwsgi

ltcproxy.cfg → ltcproxy0.cfg View File