|
@@ -8,55 +8,34 @@ Install `Apache` server and its [`WSGI` module](https://github.com/GrahamDumplet
|
8
|
8
|
|
9
|
9
|
### Configuration ###
|
10
|
10
|
|
11
|
|
-In `tracim/development.ini`:
|
12
|
|
-- edit the website base url line from:
|
13
|
|
-
|
14
|
|
- website.base_url = http://127.0.0.1:8080
|
15
|
|
-
|
16
|
|
- to:
|
17
|
|
-
|
18
|
|
- website.base_url = http://127.0.0.1
|
19
|
|
-
|
20
|
|
-- edit the base URL prefix of radicale client line from:
|
21
|
|
-
|
22
|
|
- # radicale.client.base_url.prefix = /
|
23
|
|
-
|
24
|
|
- to:
|
25
|
|
-
|
26
|
|
- radicale.client.base_url.prefix = /caldav
|
27
|
|
-
|
28
|
11
|
Create a file named `/etc/apache2/sites-available/tracim.conf` containing:
|
29
|
12
|
|
30
|
|
- <VirtualHost *:80>
|
31
|
|
- ServerName tracim
|
32
|
|
-
|
33
|
|
- ProxyPreserveHost On
|
34
|
|
- ProxyRequests Off
|
|
13
|
+ Listen 8080
|
35
|
14
|
|
36
|
|
- ProxyPass "/caldav" "http://127.0.0.1"
|
37
|
|
- ProxyPassReverse "/caldav" "http://127.0.0.1"
|
38
|
|
-
|
39
|
|
- # ProxyPass "/webdav" "http://127.0.0.1"
|
40
|
|
- # ProxyPassReverse "/webdav" "http://127.0.0.1"
|
|
15
|
+ <VirtualHost *:8080>
|
|
16
|
+ ServerName tracim
|
41
|
17
|
|
42
|
|
- WSGIDaemonProcess tracim user=www-data group=www-data threads=4 python-home=/var/www/tracim/tg2env python-path=/var/www/tracim/tracim lang='C.UTF-8' locale='C.UTF-8'
|
|
18
|
+ # Serve Tracim through WSGI
|
|
19
|
+ WSGIDaemonProcess tracim user=[your_user] group=[your_user] threads=4 python-home=[tracim_path]/tg2env python-path=[tracim_path]/tracim lang='C.UTF-8' locale='C.UTF-8'
|
43
|
20
|
WSGIProcessGroup tracim
|
44
|
|
- WSGIScriptAlias / /var/www/tracim/tracim/app.wsgi process-group=tracim
|
45
|
|
- <Directory "/var/www/tracim/tracim">
|
|
21
|
+ WSGIScriptAlias / [tracim_path]/tracim/app.wsgi process-group=tracim
|
|
22
|
+ <Directory "[tracim_path]/tracim">
|
46
|
23
|
<Files "app.wsgi">
|
47
|
24
|
Require all granted
|
48
|
25
|
</Files>
|
49
|
26
|
</Directory>
|
50
|
27
|
|
51
|
28
|
# Serve static files directly
|
52
|
|
- Alias /assets /var/www/tracim/tracim/tracim/public/assets
|
53
|
|
- Alias /_caldavzap /var/www/tracim/tracim/tracim/public/_caldavzap
|
54
|
|
- Alias /favicon.ico /var/www/tracim/tracim/tracim/public/favicon.ico
|
55
|
|
- <Directory "/var/www/tracim/tracim/tracim/public">
|
|
29
|
+ Alias /assets [tracim_path]/tracim/tracim/public/assets
|
|
30
|
+ Alias /_caldavzap [tracim_path]/tracim/tracim/public/_caldavzap
|
|
31
|
+ Alias /favicon.ico [tracim_path]/tracim/tracim/public/favicon.ico
|
|
32
|
+ <Directory "[tracim_path]/tracim/tracim/public">
|
56
|
33
|
Require all granted
|
57
|
34
|
</Directory>
|
58
|
35
|
</VirtualHost>
|
59
|
36
|
|
|
37
|
+Replace `[tracim_path]` and `[your_user]` by your tracim installation path and your user.
|
|
38
|
+
|
60
|
39
|
Load needed proxy modules and enable this site configuration file:
|
61
|
40
|
|
62
|
41
|
sudo a2enmod proxy proxy_http
|