From 477839345c1e22aa95b82ea74c8972223ed58ab3 Mon Sep 17 00:00:00 2001 From: silverpill Date: Tue, 27 Dec 2022 21:46:48 +0000 Subject: [PATCH] Serve web client by default on new installations --- CHANGELOG.md | 2 +- README.md | 8 ++++---- contrib/mitra_config.yaml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e84f921..465fbb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 19ffdab..d4e8926 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/contrib/mitra_config.yaml b/contrib/mitra_config.yaml index 636572c..fc11785 100644 --- a/contrib/mitra_config.yaml +++ b/contrib/mitra_config.yaml @@ -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