summarylogtreecommitdiffstats
path: root/0010-paths.patch
blob: bd4ed499de31e23d0a985fcb8ccb49277ed57d1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
diff -rNc lxdui-2.1.1-orig/app/api/core.py lxdui-2.1.1/app/api/core.py
*** lxdui-2.1.1-orig/app/api/core.py	2018-06-18 22:36:37.000000000 +0300
--- lxdui-2.1.1/app/api/core.py	2018-07-02 15:35:41.889414434 +0300
***************
*** 14,20 ****
  Log(__name__)
  app = Flask(__name__)
  HAS_UI = False
! PID = os.path.join(tempfile.gettempdir(), '{}.pid'.format(meta.APP_NAME).lower())
  
  # Authentication section
  initAuth(app)
--- 14,20 ----
  Log(__name__)
  app = Flask(__name__)
  HAS_UI = False
! PID = '/run/{}/{}.pid'.format(meta.APP_NAME, meta.APP_NAME).lower()
  
  # Authentication section
  initAuth(app)
***************
*** 133,136 ****
      print("LXDUI started. Running on http://0.0.0.0:{}".format(port))
      print("PID={}, Press CTRL+C to quit".format(pid))
      terminal(app, port, debug)
!     # app.run(debug=debug, host='0.0.0.0', port=port)
\ No newline at end of file
--- 133,136 ----
      print("LXDUI started. Running on http://0.0.0.0:{}".format(port))
      print("PID={}, Press CTRL+C to quit".format(pid))
      terminal(app, port, debug)
!     # app.run(debug=debug, host='0.0.0.0', port=port)
diff -rNc lxdui-2.1.1-orig/app/__metadata__.py lxdui-2.1.1/app/__metadata__.py
*** lxdui-2.1.1-orig/app/__metadata__.py	2018-06-18 22:36:37.000000000 +0300
--- lxdui-2.1.1/app/__metadata__.py	2018-07-02 15:35:41.889414434 +0300
***************
*** 26,37 ****
  lxdui.jwt.secret.key = AC8d83&21Almnis710sds
  lxdui.jwt.auth.url.rule = /api/user/login
  lxdui.admin.user = admin
! lxdui.conf.dir = {{app_root}}/conf
  lxdui.conf.file = ${lxdui.conf.dir}/lxdui.conf
  lxdui.auth.conf = ${lxdui.conf.dir}/auth.conf
  lxdui.ssl.cert = ${lxdui.conf.dir}/client.crt
  lxdui.ssl.key = ${lxdui.conf.dir}/client.key
! lxdui.log.dir =  {{app_root}}/logs
  lxdui.log.file = ${lxdui.log.dir}/lxdui.log
  lxdui.log.conf = ${lxdui.conf.dir}/log.conf
  #lxdui.log.rotate = true
--- 26,37 ----
  lxdui.jwt.secret.key = AC8d83&21Almnis710sds
  lxdui.jwt.auth.url.rule = /api/user/login
  lxdui.admin.user = admin
! lxdui.conf.dir = /etc/lxdui
  lxdui.conf.file = ${lxdui.conf.dir}/lxdui.conf
  lxdui.auth.conf = ${lxdui.conf.dir}/auth.conf
  lxdui.ssl.cert = ${lxdui.conf.dir}/client.crt
  lxdui.ssl.key = ${lxdui.conf.dir}/client.key
! lxdui.log.dir =  /var/log/lxdui
  lxdui.log.file = ${lxdui.log.dir}/lxdui.log
  lxdui.log.conf = ${lxdui.conf.dir}/log.conf
  #lxdui.log.rotate = true
diff -rNc lxdui-2.1.1-orig/conf/log.conf lxdui-2.1.1/conf/log.conf
*** lxdui-2.1.1-orig/conf/log.conf	2018-06-18 22:36:37.000000000 +0300
--- lxdui-2.1.1/conf/log.conf	2018-07-02 15:36:02.086508796 +0300
***************
*** 22,34 ****
        "class": "logging.FileHandler",
        "level": "DEBUG",
        "formatter": "default",
!       "filename": "logs/lxdui.log"
      },
      "file": {
        "class": "logging.FileHandler",
        "level": "DEBUG",
        "formatter": "default",
!       "filename": "logs/lxdui.log",
        "mode": "w",
        "encoding": "utf-8"
      }
--- 22,34 ----
        "class": "logging.FileHandler",
        "level": "DEBUG",
        "formatter": "default",
!       "filename": "/var/log/lxdui/lxdui.log"
      },
      "file": {
        "class": "logging.FileHandler",
        "level": "DEBUG",
        "formatter": "default",
!       "filename": "/var/log/lxdui/lxdui.log",
        "mode": "w",
        "encoding": "utf-8"
      }
***************
*** 46,49 ****
    "requests.packages.urllib3.connectionpool":{
      "level":"ERROR"
    }
! }
\ No newline at end of file
--- 46,49 ----
    "requests.packages.urllib3.connectionpool":{
      "level":"ERROR"
    }
! }