Browse Source

"No more test user"

Doug Le Tough 2 years ago
parent
commit
5ef2c87ff4
2 changed files with 29 additions and 2 deletions
  1. 28
    0
      stock.tetalab.org.conf
  2. 1
    2
      templates/login.html

+ 28
- 0
stock.tetalab.org.conf View File

@@ -0,0 +1,28 @@
1
+Define IP_ADDR 192.168.122.69
2
+Define TCP_PORT 80
3
+Define SRV_NAME stock.tetalab.org
4
+Define ROOT_DIR /var/www/stock.tetalab.org
5
+Define WSGI_ALIAS /var/www/stock.tetalab.org/stock.tetalab.org.wsgi
6
+Define DAEMON_PROCESS tetastock
7
+Define APACHE_USER apache
8
+Define APACHE_GROUP apache
9
+Define THREAD_NUMBER 5
10
+<VirtualHost ${IP_ADDR}:${TCP_PORT}>
11
+        ServerName stock.tetalab.org
12
+        ServerAdmin bofh@tetalab.org
13
+        DocumentRoot ${ROOT_DIR}
14
+        RemoteIPHeader X-Forwarded-For
15
+        RemoteIPInternalProxy 192.168.122.0/24
16
+        WSGIDaemonProcess ${DAEMON_PROCESS} user=${APACHE_USER} group=${APACHE_GROUP} threads=${THREAD_NUMBER}
17
+        WSGIScriptAlias / ${WSGI_ALIAS}
18
+        <Directory ${ROOT_DIR}>
19
+                WSGIProcessGroup ${DAEMON_PROCESS}
20
+                WSGIApplicationGroup %{GLOBAL}
21
+                Order deny,allow
22
+                Allow from all
23
+                AllowOverride All
24
+                Require all granted
25
+        </Directory>
26
+        ErrorLog /var/log/httpd/${SRV_NAME}.error.log
27
+        CustomLog /var/log/httpd/${SRV_NAME}.access.log combined
28
+</VirtualHost>

+ 1
- 2
templates/login.html View File

@@ -20,8 +20,7 @@
20 20
 
21 21
           {% block content %}
22 22
             <div id='edit' class='main_block'>
23
-              <h3>Tetastock version Beta</h3>
24
-              <p>Login: test<br/>Pass: test</p>
23
+              <h3>Tetastock version</h3>
25 24
               <text>Authentification:<text>
26 25
               <div class='input_block'>
27 26
                 <label>Login</label>

Loading…
Cancel
Save