summaryrefslogtreecommitdiffstats
path: root/src/configuration.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-05-18 13:50:25 +0200
committerMatthias Beyer <mail@beyermatthias.de>2020-05-18 14:25:41 +0200
commit7cf06683f29b5bd725b9ec15e2ffac77e039e51b (patch)
tree62d948d5409d4392b148e10c2d31ddbbf4615a3d /src/configuration.rs
parent145a60d65756a4fb0a1429418a5f11f60fb1adcb (diff)
Add port configuration/cli argument
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/configuration.rs')
-rw-r--r--src/configuration.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/configuration.rs b/src/configuration.rs
index c0d64b5..5b39090 100644
--- a/src/configuration.rs
+++ b/src/configuration.rs
@@ -15,6 +15,11 @@ pub struct Configuration {
/// The Port of the API
api_port: u16,
+ #[serde(rename = "app-port")]
+ #[get]
+ /// The Port of the App itself
+ app_port: u16,
+
#[serde(rename = "autoserve-chains")]
#[get]
/// Whether to automatically "ipfs pin" chain objects
@@ -84,6 +89,7 @@ impl Default for Configuration {
Configuration {
api_url : String::from("127.0.0.1"),
api_port : 5001,
+ app_port : 5002,
autoserve_chains : true,
autoserve_text_posts : true,
serve_blocked : false,