1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-21 23:00:50 +03:00

Frontend/static files building & serving

This commit is contained in:
Quentin Gliech
2021-12-09 22:09:39 +01:00
parent c53318eca0
commit d8df34db4c
16 changed files with 4284 additions and 7 deletions

View File

@@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use std::path::PathBuf;
use async_trait::async_trait;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
@@ -26,12 +28,16 @@ fn default_http_address() -> String {
pub struct HttpConfig {
#[serde(default = "default_http_address")]
pub address: String,
#[serde(default)]
pub web_root: Option<PathBuf>,
}
impl Default for HttpConfig {
fn default() -> Self {
Self {
address: default_http_address(),
web_root: None,
}
}
}