Serve web client by default on new installations

This commit is contained in:
silverpill 2022-12-27 21:46:48 +00:00
parent ad887d3136
commit 477839345c
3 changed files with 6 additions and 6 deletions

View file

@ -8,7 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Changed
- Updated recommended nginx config.
- Updated installation instructions, default mitra config and recommended nginx config.
### Fixed

View file

@ -63,15 +63,15 @@ CREATE DATABASE mitra OWNER mitra;
Create configuration file by copying `contrib/mitra_config.yaml` and configure the instance. Default config file path is `/etc/mitra/config.yaml`, but it can be changed using `CONFIG_PATH` environment variable.
Put any static files into the directory specified in configuration file. Building instructions for `mitra-web` frontend can be found at https://codeberg.org/silverpill/mitra-web#project-setup.
Start Mitra:
```shell
./mitra
```
An HTTP server will be needed to handle HTTPS requests and serve the frontend. See the example of [nginx configuration file](./contrib/mitra.nginx).
Building instructions for `mitra-web` frontend can be found at https://codeberg.org/silverpill/mitra-web#project-setup.
An HTTP server will be needed to handle HTTPS requests. See the example of [nginx configuration file](./contrib/mitra.nginx).
To run Mitra as a systemd service, check out the [systemd unit file example](./contrib/mitra.service).
@ -98,7 +98,7 @@ Start Mitra:
systemctl start mitra
```
An HTTP server will be needed to handle HTTPS requests and serve the frontend. See the example of [nginx configuration file](./contrib/mitra.nginx).
An HTTP server will be needed to handle HTTPS requests. See the example of [nginx configuration file](./contrib/mitra.nginx).
### Monero

View file

@ -3,7 +3,7 @@
database_url: postgres://mitra:mitra@127.0.0.1:5432/mitra
storage_dir: /var/lib/mitra
# Path to web client static files
#web_client_dir: /usr/share/mitra/www
web_client_dir: /usr/share/mitra/www
http_host: '127.0.0.1'
http_port: 8383