Benutzer-Werkzeuge

Webseiten-Werkzeuge


dapnetnodeinstall

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung Beide Seiten der Revision
dapnetnodeinstall [2018/03/07 12:34]
dh3wr [Alternative 1 to run the Node]
dapnetnodeinstall [2018/03/07 12:42]
dh3wr [Installation of DAPNET-Web]
Zeile 132: Zeile 132:
 Edit <​code>/​etc/​apache2/​sites-available/​000-default.conf</​code>​ and change Edit <​code>/​etc/​apache2/​sites-available/​000-default.conf</​code>​ and change
  
-<​code>​DocumentRoot ​/​opt/​dapnet/​Web/​dist</​code>​+<​code>​DocumentRoot dist</​code>​
  
 Insert below this line: Insert below this line:
Zeile 148: Zeile 148:
 Change to <​code>​cd /​opt/​dapnet/​Web</​code>​ and follow the instructions on [[https://​github.com/​DecentralizedAmateurPagingNetwork/​Web|Github]]. Change to <​code>​cd /​opt/​dapnet/​Web</​code>​ and follow the instructions on [[https://​github.com/​DecentralizedAmateurPagingNetwork/​Web|Github]].
  
-Now the web interface is accessable on http://​YOURURL .+Now the web interface is accessable on ''​http://​YOURURL'' ​. 
 + 
 +==== Hint to run the REST-API on the same HTTP Port ==== 
 +Normally, the REST-API runs on port 8080. If you just have port 80 open for your website and don't want to add port 8080, you can use the Apache webserver as a proxy to process the API requests. 
 + 
 +Add to your apache config: 
 +<​file>​ 
 +        ProxyPass "/​api"​ "​http://​URLOFYOURCORE:​8080 
 +        ProxyPassReverse "/​api"​ "​http://​URLOFYOURCORE:​8080"​ 
 +</​file>​ 
 + 
 +In the settings of the DAPNET-WEG, enter in ''/​src/​store/​defaultUrls.json''​ the API URL to 
 +<​code>​ 
 +    "​api":​ "​http://​YOURWEBSITEURL/​api",​ 
 +</​code>​ 
 + 
 +Restart the apache and build the website again: 
 +<​code>​ 
 +sudo systemctl restart apache2 
 +cd /​opt/​dapnet/​Web/​ 
 +npm run build 
 +</​code>​
  
 ===== First Steps ===== ===== First Steps =====
 Ask us for your personal login data and happy paging. Ask us for your personal login data and happy paging.
dapnetnodeinstall.txt · Zuletzt geändert: 2018/10/23 09:22 von df2et