annotate README @ 471:dd2b468dc1c2

Added hints on installation
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 14 Jan 2014 15:45:28 +0100
parents 9ba41a46f6e5
children 8419950cb3ea
rev   line source
436
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
1 Lada-Client
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
2 ===========
469
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
3 Dies ist die Prototypversion eines EXTJS basierten Klienten für die
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
4 Verarbeitung von Labordaten (Lada) zur Überwachung der Umweltradioaktivität.
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
5
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
6 Die Software bietet grundlegende Funktionalität zur Erfassung und Bearbeitung
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
7 von Messdaten. Weitere Informationen finden sich auf der Projektwebseite unter
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
8 der Adresse:
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
9
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
10 https://wald.intevation.org/projects/lada/
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
11
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
12 Die Software entstand im Rahmen einer Software Entwicklung durch die
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
13 Intevation GmbH im Auftrag des Bundesamt für Strahlenschutz im Jahre 2013.
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
14
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
15 Lizenz
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
16 ------
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
17 Die Software unter der GPL Affero Lizenz verfügbar.
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
18
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
19 Quellen
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
20 -------
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
21 Die Quelldateien lassen sich wie folgt auschecken:
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
22 hg clone https://scm.wald.intevation.org/hg/lada/lada-client
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
23
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
24 Dokumentation
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
25 -------------
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
26 Die Dokumentation wird mit dem Tool JSDuck erzeugt.
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
27 Im Wurzelordner lässt sich nach der Installation von JSDuck dann mit dem
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
28 Befehl "jsduck" die Dokumentation für den Lada-Clienten erzeugen.
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
29 Die Dokumentation findet sich nach der Generierung in dem Order "doc".
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
30 Einstiegseite ist die Seite template.html.
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
31
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
32 JSDuck ist unter der Adresse
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
33
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
34 https://github.com/senchalabs/jsduck
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
35
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
36 zu finden und muss installiert werden.
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
37
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
38 Einstellung bezüglich der Generierung der Dokumentation ist in der Datei
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
39 jsduck.json hinterlegt.
436
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
40
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
41 Entwicklung
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
42 -----------
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
43 Für die Entwicklung ist es notwenig in dem Wurzelordner die ExtJS-Bibliothek
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
44 in der Version >=4.2.0 unter dem Namen "extjs" zur Verfügung zu stellen.
27
e02d07abc4fe Added notes to the README
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 26
diff changeset
45
e02d07abc4fe Added notes to the README
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 26
diff changeset
46 Diese lässt sich unter der folgenden URL herunterladen:
e02d07abc4fe Added notes to the README
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 26
diff changeset
47 http://cdn.sencha.com/ext/gpl/ext-4.2.0-gpl.zip
e02d07abc4fe Added notes to the README
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 26
diff changeset
48
e02d07abc4fe Added notes to the README
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 26
diff changeset
49 SHA1 Checksum: 2ce990d9e90c48a76078e8533c72b5452f9ed809
e02d07abc4fe Added notes to the README
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 26
diff changeset
50
e02d07abc4fe Added notes to the README
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 26
diff changeset
51 Beispiel:
e02d07abc4fe Added notes to the README
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 26
diff changeset
52 curl -O http://cdn.sencha.com/ext/gpl/ext-4.2.0-gpl.zip
e02d07abc4fe Added notes to the README
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 26
diff changeset
53 unzip ext-4.2.0-gpl.zip
e02d07abc4fe Added notes to the README
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 26
diff changeset
54 ln -s ext-4.2.0-gpl extjs
340
7cddca668d21 Hinweise zur Dokumentation eingefügt.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 27
diff changeset
55
436
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
56 Zusätzlich wird für diese Anwendung eine Bibliothek zur Internationalisierung
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
57 verwendet, die unter der URL
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
58
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
59 https://github.com/elmasse/Ext.i18n.Bundle
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
60
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
61 verfügbar ist, verwendet.
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
62 Diese muss in dem Ordner 'src' der vorher zur Verfügung gestellten ExtJS
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
63 Bibliothek eingebunden werden. Dazu wird der Ordner 'i18n' in den Ordner 'src' kopiert
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
64 oder verlinkt.
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
65
469
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
66 Build
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
67 -----
436
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
68 Die Anwendung wird mit Hilfe des von Sencha bereitgestellten Tools 'Sencha Cmd'
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
69 compiliert und minifiziert. Vorbedingung für den Compilevorgang ist die unter
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
70 Entwicklung beschriebene Verzeichnisstruktur.
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
71
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
72 Sencha Cmd kann unter der URL
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
73
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
74 http://www.sencha.com/products/sencha-cmd/download
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
75
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
76 heruntergeladen und dann installiert werden.
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
77
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
78 Mit dem folgenden Befehl kann dann der Lada-Client compiliert und minifiziert werden:
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
79
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
80 sencha -sdk /path/to/extjs compile \
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
81 -classpath=app,app/view/widgets/resources/datetime page -yui \
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
82 -in index.html -out build/index.html
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
83
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
84 Dies erzeugt in dem Ordner 'build' die minifizierte Version der Anwendung, die
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
85 alle benötigten Klassen der ExtJS Bibliothek beinhaltet und eine entsprechende
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
86 index.html, die zur Auslieferung in einem Webserver verwendet werden kann.
067ecffac15d Updated Readme: Added section with hints to minify the app with Sencha cmd.
Raimund Renkert <rrenkert@intevation.de>
parents: 399
diff changeset
87
469
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
88 Installation
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
89 ------------
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
90 Für den Betrieb des Lada-Clients muss dieser innerhalb einer Webserver-Umgebung
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
91 installiert werden. Die folgenden Hinweise geben eine Kurze Anleitung zur
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
92 Installation eines Apache-Webserver.
340
7cddca668d21 Hinweise zur Dokumentation eingefügt.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 27
diff changeset
93
469
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
94 Hinweis: Für den Betrieb einer vollständigen Installation ist neben dem
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
95 Klienten auch die Installation eines Servers und entsprechender Datenbank
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
96 notwendig. Für die Installation des Servers folgen Sie bitte den Hinweisen in
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
97 der README Datei des Server-Pakets. Siehe Projektwebseite. Optional: Die
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
98 Authentifizierung kann gegen einen LDAP-Server durchgeführt werden. Beispiele
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
99 finde sich in dem Installationbeispiel.
399
d0a9a1c31441 Hinweis hinzugefügt wo JSDuck zu finden ist.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 340
diff changeset
100
469
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
101 Die folgenden Hinweise beziehen sich auf die Installation und Einrichtung auf
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
102 Basis eines Oracle-RedHat Linux Systems.
399
d0a9a1c31441 Hinweis hinzugefügt wo JSDuck zu finden ist.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 340
diff changeset
103
469
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
104 Installation Apache
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
105 ```````````````````
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
106 Zunächst wird der Apache Webserver aus dem Repository installiert:
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
107
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
108 yum install httpd mod_ssl
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
109 service httpd start
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
110
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
111 Aktivierung der Apache Module
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
112 `````````````````````````````
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
113
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
114 Die Konfiguration, welche Module beim Start des Apache geladen werden, erfolgt
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
115 in der Datei "/etc/httpd/conf". Die zu ladende Module sind in dieser Datei mit
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
116 der Option "LoadModule" angegeben. Folgende Module werden benötigt:
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
117
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
118 * ldap_module: Authenitfizierung gegen den LDAP
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
119 * headers_module: Setzten der Header nach der Authenitifizierung
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
120 * proxy_module: Reverse Proxy des Apache zum Jboss-Server
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
121
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
122 Einrichtung der Anwendung
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
123 `````````````````````````
471
dd2b468dc1c2 Added hints on installation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 469
diff changeset
124 Zunächst hinterlegen wir die Anwendung in dem Server. Hierzu verwenden wir die
dd2b468dc1c2 Added hints on installation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 469
diff changeset
125 gebaute Version, welche sich im "build" Ordner befindet (Siehe Build).
469
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
126
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
127 cd /var/www/html
471
dd2b468dc1c2 Added hints on installation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 469
diff changeset
128 mkdir lada
dd2b468dc1c2 Added hints on installation
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 469
diff changeset
129 cp build/* lada
469
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
130
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
131 # Wichtig um SELinux dazu zu überreden das neue Verzeichnis auch zu
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
132 # servieren:
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
133 restorecon -Rv /var/www/html/
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
134
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
135 Die Anwendung sollte nun bereits unter der Adresse http://localhost/lada
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
136 erreichbar sein.
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
137
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
138 Konfiguration Proxy Server
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
139 ``````````````````````````
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
140 Damit der Client eine Verbindung zu dem Server aufbauen kann, um von dort
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
141 Daten laden zu können, ist es notwendig den Server weiter zu konfigurieren.
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
142
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
143 togglesebool httpd_can_network_connect
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
144 service httpd restart
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
145
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
146 Dies erlaubt dem Apache grundsätzlich sich mit einem anderen Dienst zu verbinden.
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
147 Nun muss noch ein Reverse-Proxy eingerichtet werden. Dieser ist nur für
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
148 bestimmte Adressen aktiv
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
149
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
150 Folgende Datei sollte unter "/etc/httpd/conf.d/lada.conf" angelegt werden:
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
151
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
152 <VirtualHost *:80>
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
153 ServerAdmin webmaster@localhost
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
154 #ServerName dummy-host.example.com
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
155 ErrorLog logs/lada-error_log
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
156 CustomLog logs/lada-access_log common
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
157
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
158 # Set multiple Proxys
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
159 ProxyPass /lada/server http://localhost:8080/lada
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
160 ProxyPassReverse /lada/server http://localhost:8080/lada
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
161 </VirtualHost>
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
162
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
163 Alle Anfragen an die Adresse "/lada/service", werden nun an den Server weitergeleitet.
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
164
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
165 Authentifizierung
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
166 `````````````````
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
167 Die Authentifizierung geschieht gegen einen LDAP-Server.
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
168
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
169 <Location /lada>
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
170 AuthType basic
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
171 AuthName "test"
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
172 AuthBasicProvider ldap
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
173 AuthLDAPURL "ldap://ike.polyhedra.intevation.de:389/cn=users,dc=icosahedron,dc=polyhedra,dc=intevation,dc=de?uid,memberof??(&(objectClass=inetOrgPerson)(memberOf=*))"
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
174 Require valid-user
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
175 </Location>
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
176
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
177 <Location /lada/server>
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
178 RequestHeader unset Authorization
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
179 RequestHeader set X-LDAP-User "%{AUTHENTICATE_uid}e"
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
180 RequestHeader set X-LDAP-Groups "%{AUTHENTICATE_memberof}e"
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
181 </Location>
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
182
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
183 Sofern gewünscht, kann die Authentifizierung für Testzwecke zu deaktivieren
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
184 werden. Trotz allem müssen die entsprechenden Header gesetzt werden, da der
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
185 Server zur Authentifizierung und Authorisierung erwartet.
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
186
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
187 # Set Headers to simulate Authentification.
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
188 <Location /lada/server>
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
189 RequestHeader set X-LDAP-User "mst_06010"
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
190 RequestHeader set X-LDAP-Groups "cn=Imis_world,cn=groups,dc=icosahedron,dc=polyhedra,dc=intevation,dc=de;cn=mst_06010,cn=groups,dc=icosahedron,dc=polyhedra,dc=intevation,dc=de;cn=mst_11010,cn=groups,dc=icosahedron,dc=polyhedra,dc=intevation,dc=de"
9ba41a46f6e5 README added hints for installation, license etc.
Torsten Irländer <torsten.irlaender@intevation.de>
parents: 436
diff changeset
191 </Location>

http://lada.wald.intevation.org