Skip to content
Snippets Groups Projects
Commit 74c2a345 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

[fix] Fix documentation for web site deployment

parent 478070fd
No related branches found
No related tags found
No related merge requests found
Pipeline #8500 failed
Subproject commit d3566be2a5ef91861237252626305221bde1d7a8 Subproject commit 5a620ea1be8a5ad0596ba19887f6238e9a486c65
# Deploy Cesium # Deploy Cesium on a web server
## Bash script > **WARN**: Installing Cesium as a web site is NOT recommended, for security reasons!
> A DNS attack can redirect to another web site (with modified javascript code) in order to retrieve user credentials (wallet secret key)
>
> We recommend the use of the [web extension](build_web_extension.md), or the [desktop application](build_desktop.md);
>
> Read [this post](https://forum.monnaie-libre.fr/t/cesium-evolue-aie-ca-va-piquer-mais/10015) for details (French).
## First deployment
1. Create the root directory:
```bash
cd /var/www/
sudo mkdir cesium
cd cesium
```
2. Download and unzip:
```bash
cd /var/www/cesium
wget -kL https://.../cesiumvx.y.z.zip
unzip -o /var/www/cesium cesiumvx.y.z.zip
```
3. Configure Cesium default settings, by editing the file `config.js`;
4. Configure your web engine (e.g. Apache, nginx) to use the root directory, by creating a new `location` or a new `virtualhost`;
Please refer to your engine documentation.
5. Restart your web engine.
That's it !
## Update to the latest version
## Example Bash script
This is a bash script example, that you can use to deploy the latest release. This is a bash script example, that you can use to deploy the latest release, in a existing Cesium web site.
This script will create or replace a directory name `cesium`, where application will be unpack. This script will create or replace a directory name `cesium`, where application will be unpack.
**Be aware** that the destination directory will be created **where the script is**. **Be aware** that the destination directory will be created **where the script is**.
...@@ -34,6 +69,7 @@ cd $BASEDIR ...@@ -34,6 +69,7 @@ cd $BASEDIR
echo "Installing cesium into '$BASEDIR/cesium'..." echo "Installing cesium into '$BASEDIR/cesium'..."
# In order to get the latest version, simplify run:
wget -qO- https://git.duniter.org/clients/cesium-grp/cesium/raw/master/install.sh | bash wget -qO- https://git.duniter.org/clients/cesium-grp/cesium/raw/master/install.sh | bash
export VERSION=`sed -rn "s/\s*\"version\": \"([^\"]*)\",\s*/\1/p" cesium/config.js` export VERSION=`sed -rn "s/\s*\"version\": \"([^\"]*)\",\s*/\1/p" cesium/config.js`
......
...@@ -53,11 +53,12 @@ ...@@ -53,11 +53,12 @@
</head> </head>
<body id="cesium" ng-strict-di="true" window-exit-unauth="true" <body id="cesium" ng-strict-di="true" window-exit-unauth="true"
ng-class="{'nobackdrop': $root.tour, 'expert-mode': $root.settings.expertMode}"> ng-class="{'nobackdrop': $root.tour, 'expert-mode': $root.settings.expertMode}"
style="background-color: #1a237e;">
<ion-nav-view> <ion-nav-view>
<div class="loader"> <div class="loader">
<h3 style="text-align: center; padding-top: 25px; "><b>Cesium</b></h3> <h3 style="text-align: center; padding-top: 25px; color: whitesmoke;"><b>Cesium</b></h3>
<h4 style="text-align: center;"><i class="icon ion-load-a"></i></h4> <h4 style="text-align: center; color: whitesmoke;"><i class="icon ion-load-a"></i></h4>
</div> </div>
</ion-nav-view> </ion-nav-view>
......
...@@ -98,7 +98,7 @@ angular.module("cesium.config", []) ...@@ -98,7 +98,7 @@ angular.module("cesium.config", [])
} }
}, },
"version": "1.6.1", "version": "1.6.1",
"build": "2020-03-17T16:53:39.290Z", "build": "2020-03-20T13:48:35.118Z",
"newIssueUrl": "https://git.duniter.org/clients/cesium-grp/cesium/issues/new" "newIssueUrl": "https://git.duniter.org/clients/cesium-grp/cesium/issues/new"
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment