Commit graph

56 commits

Author SHA1 Message Date
silverpill
227eef2d6b Add Content-Security-Policy and X-Content-Type-Options headers to all responses 2023-02-22 17:56:47 +00:00
silverpill
e8ea52adba Move create_auth_error_handler function to http module 2023-02-19 17:10:29 +00:00
silverpill
10f2596830 Move config parser to mitra-config crate 2023-02-19 00:39:15 +00:00
silverpill
2d9a43b076 Add /api/v1/apps endpoint 2023-02-11 17:14:37 +00:00
silverpill
e784476344 Add /api/v1/custom_emojis endpoint 2023-02-04 21:59:59 +00:00
silverpill
771f45baab Add registration.type configuration option 2023-01-25 23:47:36 +00:00
silverpill
200675464e Replace config.version field with constant 2023-01-25 20:30:51 +00:00
silverpill
fe6d99c5b1 Drop support for "blockchain" setting 2023-01-25 04:41:03 +00:00
silverpill
d09770913b Replace client-side tag URLs with collection IDs 2023-01-22 15:32:23 +00:00
silverpill
75579eae4f Add support for emoji shortcodes 2023-01-21 22:56:46 +00:00
silverpill
eb825bca04 Add fallback route for well-known paths 2023-01-18 18:25:40 +00:00
silverpill
6d6a41d3e5 Print HTTP socket address when starting HTTP server 2023-01-18 16:28:52 +00:00
silverpill
48de6218eb Add webfinger test 2023-01-13 01:31:45 +00:00
silverpill
7494d62858 Make post/profile page redirection work when web client service is enabled 2022-12-24 17:59:40 +00:00
silverpill
dea6bcad2a Serve web client if configuration option is present 2022-12-24 17:20:16 +00:00
silverpill
e7d9733f96 Move scheduler to job_queue module 2022-12-11 21:06:44 +00:00
silverpill
2a9794f8f7 Add API methods for exporting followers and follows 2022-11-24 21:58:00 +00:00
silverpill
0840197cac Fix clippy warnings 2022-11-06 21:20:14 +00:00
silverpill
2e7403ef14 Add redirection views for /profile/{id} and /post/{id} paths 2022-10-27 22:13:53 +00:00
silverpill
b345cb4a77 Allow GET requests from any origin 2022-10-27 15:48:54 +00:00
silverpill
54c8f241e4 Convert JSON payload deserialization errors into validation errors 2022-10-02 21:23:16 +00:00
silverpill
260e62d51b Allow blockchain configuration to be defined using a list
Multi-chain configurations are still not allowed.
2022-08-31 20:42:55 +00:00
silverpill
daaa0855a6 Use /api/v1/subscriptions prefix for subscription API methods 2022-08-25 19:16:46 +00:00
silverpill
4dc94ed39b Return validation error if upload size exceeds limit 2022-08-18 22:39:53 +00:00
silverpill
c546840787 Update actix crate 2022-08-18 18:05:18 +00:00
silverpill
dc7d533c42 Allow blockchain config to have sub-types 2022-08-10 11:57:35 +00:00
silverpill
0e8943a24b Split config module into sub-modules 2022-08-09 22:31:59 +00:00
silverpill
450e47bcef Fix Access-Control-Expose-Headers header 2022-08-06 22:07:33 +00:00
silverpill
2f532307a1 Switch to incremental blockchain synchronization 2022-06-25 11:59:03 +00:00
silverpill
b618c5b31f Use shared ContractSet object when verifing user during registration
Server will not start if blockchain configuration is invalid.
2022-06-23 22:03:51 +00:00
silverpill
0148343655 Use initial block number as lower bound when making log query 2022-06-14 21:31:42 +00:00
silverpill
30f7f5d996 Initialize contract set in main() 2022-06-14 10:46:15 +00:00
silverpill
a526b507f3 Always log server errors 2022-06-02 20:04:36 +00:00
silverpill
783c482e9e Process incoming activities sequentially
This is a quick fix for race conditions occuring during handling of inbox requests.
2022-05-05 16:53:53 +00:00
silverpill
ae4bfcf614 Add cargo feature for making production build 2022-05-04 22:06:12 +00:00
silverpill
c0837bbf77 Create Atom feeds for local users 2022-04-16 19:37:45 +00:00
silverpill
30bd3d6a37 Migrate to actix 4.0 and tokio 1 2022-04-10 19:14:45 +00:00
silverpill
bf27903ee9 Drop database connection before starting HTTP server 2022-02-23 21:33:56 +00:00
silverpill
e48a8999f5 Make /api/v1/accounts return validation error if user already exists 2022-02-11 21:32:37 +00:00
silverpill
75fa39718c Add http_cors_allowlist configuration option 2022-02-10 23:35:23 +00:00
silverpill
a63da82b85 Allow cross-origin requests from localhost in production environment
https://codeberg.org/silverpill/mitra/issues/5
2022-02-08 13:16:46 +00:00
silverpill
f2fb44bb63 Change configuration options related to blockchain integration 2022-01-28 00:41:23 +00:00
silverpill
040934da2d Don't create database conn pool when running mitractl 2022-01-06 11:28:07 +00:00
silverpill
2ab33f22ee Add log_level config parameter and improve logging of activities 2021-12-21 22:19:17 +00:00
silverpill
ec36dea0c9 Log activities coming to instance actor inbox 2021-11-21 13:48:33 +00:00
silverpill
d935b843a8 Create instance actor 2021-11-18 00:51:56 +00:00
silverpill
cc252d1349 Print version on startup 2021-11-13 17:49:04 +00:00
silverpill
aa1ef71857 Refactor some mastodon API modules 2021-11-07 13:37:36 +00:00
silverpill
979588b5b8 Create media directory automatically on start 2021-11-06 12:14:22 +00:00
silverpill
514c7ae237 Refactor config, make ethereum integration optional 2021-11-05 23:47:36 +00:00