Commit graph

22 commits

Author SHA1 Message Date
1e0fa7279f
chore: apply clippy lints 2022-11-15 18:09:34 +05:30
0b2db58483
feat: replace log crate with tracing 2022-11-11 14:56:36 +05:30
dd38dd05d1
feat: add base_path to settings to specify deploy host name.
DESCRIPTION
    Each deployment should have a default hostname before a custom
    domain can be assigned. Therefore, this domain must be in control of
    the Librepages system (Librepages/conductor, namely)

SECURITY
    base_domain must be different from the domains hosting confidential
    information (authentication systems, PII data, etc.) to make use of
    browser domain sandboxing safety. If Librepages deployment is open
    to the public, unaudited, third-party content may be hosted in this
    domain, so it is very important that this domain shouldn't be used
    for critical infrastructure dealing with confidential information.
2022-11-10 17:19:35 +05:30
79a8b6586c
feat: rm loading pages from settings and rely on DB. Propagate changes
across codebase
2022-11-10 16:26:19 +05:30
76692109bc
feat: add Settings.pages.base_path to store website content
DIRECTORY STRUCTURE:
    Settings.pages.base_path > page.hostname
2022-11-09 14:20:56 +05:30
1ada27924e
feat: add support email config param 2022-09-16 14:49:13 +05:30
90dabb206d
feat: init settings in main fn 2022-09-16 13:22:29 +05:30
94702b81b0
feat: load actix-identity middleware 2022-09-12 01:39:11 +05:30
45073bb1a4
feat: add registration flag 2022-09-12 00:23:38 +05:30
8150aa9ca1
feat: init and load db 2022-09-10 19:21:49 +05:30
4d136f2407
feat: update customer specified branch 2022-09-08 00:59:39 +05:30
d676599bf5
feat: add server domain parameter 2022-09-07 01:58:25 +05:30
e757e52582
chore: tests-compatible logging and abstract repo initialization in settings 2022-04-27 11:50:06 +05:30
68d63bba07
chore: load app settings via app ctx and do away with global static loader 2022-04-27 10:52:24 +05:30
b758042836
feat: handle Git errors 2022-04-26 20:13:23 +05:30
325d110e9a
feat: switch to user configured branch even when configuration is changed
DESCRIPTION

Branch switching wasn't possible in earlier versions. If user deploys
"master" branch first and then wants to switch to "pages" branch, they
would have to delete the Pages-managed copy of the repository to
re-initialize the repository.

This patch introduces changes to switch to user configured branch on
startup and at each repository update.
2022-04-09 11:04:44 +05:30
1fe29fd9b2
fix: config loading order 2022-03-29 19:05:31 +05:30
c6f9cb7ac1
chore: update dep: config 2022-03-29 18:13:26 +05:30
da98218d31
chore: update copyright notice 2022-03-29 17:36:22 +05:30
8b075a66fd
fix: get rid of useless configuraiton options 2022-03-29 17:35:44 +05:30
8cd9f0030d
configurable workers
This server will only see occasional traffic so it makes sense to spawn
only limited number of workers as opposed to spawning one worker/thread,
which is the default behavior.

I recommend at least two workers.
2021-10-30 15:30:38 +05:30
954ac6c578
routes:
- get build metadata
    - authenticate and update repository with branch configuration
2021-10-29 20:23:07 +05:30