5
0
Fork 0
mirror of https://gitlab.com/t6353/sharee.bike.wiki.git synced 2025-01-11 16:34:27 +01:00

Update 2. Installation guide wit exteranl ressources

This commit is contained in:
Rainer Gümpelein 2022-12-12 14:41:06 +00:00
parent b5d6d25c2a
commit 27f4db53c2

View file

@ -53,11 +53,26 @@ The copri operator-instance installation is done by
mkdir /exports && cd /exports
git clone https://gitlab.com/t6353/sharee.bike.git
mv sharee.bike gitlab
cd gitlab/copri4 && ./mkaccess.sh
cd /var/www && ln -s ../../exports/gitlab/copri4
mkdir /var/log/copri4 && chown www-data /var/log/copri4
```
Mainly for the frontend user-interface we use some external open-source icons and javascript - css libraries which have to be installed.
```
mkdir /var/www/copri4external && cd /var/www/copri4external
```
In this directory we will keep some external ressourcen. Some have to be unzipped.
1. Download the latest stable bootstrap version for example from https://getbootstrap.com.
2. Download bootstrap-icons from https://icons.getbootstrap.com
3. Download the latest stable jquery library from https://jquery.com
4. Download the latest stable jquery-ui library from https://jqueryui.com
The library path and filenames must be configured in global.cfg, more about this below.
```
cd /var/www/copri4/main
ln -s /var/www/copri4external external
chgrp -R www-data external/*
```
At first setup the base copri database. You have to configure postgres to get just access by localhost. Set your postgres access rights.
```
@ -65,7 +80,7 @@ su - postgres
createdb sharee_operator
exit
cd /exports/gitlab/copri4/shareeconf
gunzip -c examples/sharee_operator.sql.gz | psql -U [your-psql-user] sharee_operator
gunzip -c examples/sharee_operator.sql.gz | psql -U your_psql_user sharee_operator
```
The installation has some configuration defaults and examples. You have to edit to fit your web-reachable DNS registered sharee servers.
@ -94,6 +109,10 @@ cp examples/apikeys.cfg .
cp examples/mailx.cfg .
cp examples/global.cfg .
```
After setup all ressources make and check some file access rights by
```
cd /var/www/copri4 && ./mkaccess.sh
```
After configure your sharee apache confs, DNS, got SSLCertificate and set also the values in global.cfg. At last you have to softlink the sharee apache conf with: