Installation
Table of Contents
1. Vorarbeiten
sudo apt install build-essential libssl-dev pkg-config rustup
rustup update
rustup default stable
Die Datei ~/rust-distribution-server.ini
hat folgendes Grundgerüst und Standardwerte:
nano ~/rust-distribution-server.ini
[FILES]
server-list = ~/rust-distribution-server-list.xml
[LISTENERS]
http-address = 127.0.0.1
http-port = 9080
https-address = 127.0.0.1
https-port = 9443
ws-port = 9081
[LOGGING]
#config-file = ~/rust-distribution-server.log4rs.yaml
output-file = ~/rust-distribution-server.log
[SSL]
#cert = localhost.crt
#key = localhost.key
2. Installation aus den Quellen
mkdir -p ~/projects && cd projects
git clone --recurse-submodules git@bitbucket.org:locr/rustdistributionserver.git RustDistributionServer
cd RustDistributionServer
4. nginx konfigurieren
sudo cp installation_files/nginx/conf.d/rds /etc/nginx/conf.d
Sicherstellen, dass folgende Zeile in der Datei /etc/nginx/sites-enabled/default
existiert.
sudo nano /etc/nginx/sites-enabled/default
server {
...
include conf.d/rds;
...
}
sudo service nginx restart
Status des RDS-Dienstes überprüfen.
systemctl --user status rds
Aufruf der RDS-Oberfläche: https://<domain>/rds/
Beispiel-Aufruf, wenn ein Server mit dem "Nominatim"-Feature eingebunden ist: https://<domain>/rds/passthrough/?url=search%3Fq%3DBraunschweig&usage_restriction=nominatim
.
5. Installationsschritte für Entwicklungsumgebung
NodeJS installieren
TypeScript installieren
# install TypeScript Dev-Dependencies
npm i --save-dev @types/jquery
npm i --save-dev @types/jqueryui
npm i --save-dev @types/datatables.net