Commit graph

133 commits

Author SHA1 Message Date
Laurențiu Nicola
ec8742b8eb Use sd-notify instead of libsystemd 2019-10-01 19:22:25 +03:00
Antoine Gersant
22ae33f029 Updated simplelogger 2019-09-28 16:54:37 -07:00
Antoine Gersant
82ea7983aa Instrument index duration 2019-09-02 14:28:25 -07:00
Antoine Gersant
9d1ad2dc60 Fixed warning when compiling on Windows 2019-08-28 22:41:32 -07:00
Laurențiu Nicola
1bffdf0861 Provide secret key to Rocket 2019-08-08 08:06:29 +03:00
Laurențiu Nicola
606eae563d Add support for notifying systemd of startup 2019-08-07 14:37:27 +03:00
Laurențiu Nicola
b1fec94e82 Fix Windows builds 2019-08-07 08:50:24 +03:00
Laurențiu Nicola
6d963c059f Use 2018-style macro imports 2019-08-06 12:51:15 +03:00
Laurențiu Nicola
57ded63cb8 2018 edition idioms 2019-08-06 12:31:30 +03:00
Laurențiu Nicola
b70c8ff622 More dependency updates 2019-08-06 12:25:47 +03:00
Tim Peters
b878ac555e Implement suggestions 2019-05-28 19:15:13 +02:00
Tim Peters
0224a5dee3 Fix logging in docker.
Docker by default doesn't have a TTY. The TermLogger doesn't work in that case.
If the TermLogger can't be initiated, try the SimpleLogger.
See https://github.com/Drakulix/simplelog.rs/issues/30 for a similar case.
2019-05-27 21:10:11 +02:00
Antoine Gersant
69c8c93277 Fixed warnings 2019-04-07 23:28:31 -07:00
Antoine Gersant
c8655a2447 Serve swagger files under /swagger 2019-04-07 23:24:15 -07:00
Antoine Gersant
32a808b962 Ship swagger files and mount them on /swagger 2019-04-07 18:54:53 -07:00
Antoine Gersant
5f91da915e Added unit test for api/version 2018-11-11 17:49:38 -08:00
Antoine Gersant
a3968e9cb7 Moved server initialization outside of main for easier testing 2018-11-11 12:11:18 -08:00
Antoine Gersant
9dbf8526dc Renamed rocket_api to api 2018-11-11 11:11:24 -08:00
Antoine Gersant
0cd82a338d Merge branch 'master' into rocket 2018-11-10 23:44:20 -08:00
Antoine Gersant
37a4521e15 Updated rustfm-scrobble to version with recent reqwest dep and nicer API 2018-11-03 17:50:42 -07:00
Antoine Gersant
03a248a020 Undo edition changes, doest not compile on stable 2018-11-02 19:49:33 -07:00
Antoine Gersant
4b4ab8145c Rust 2018 2018-10-30 23:49:30 -07:00
Antoine Gersant
59b0dda760 Switch to Rust 2018 2018-10-30 23:37:32 -07:00
Antoine Gersant
cba28e8e2c Run server on expected port (5050 or custom) 2018-10-28 19:09:32 -07:00
Antoine Gersant
ed2ae20951 Allow auth via HTTP authorization header 2018-10-28 19:04:21 -07:00
Antoine Gersant
75449aa0e0 Dont run server on main thread 2018-10-28 17:42:08 -07:00
Antoine Gersant
0f2556516a Removed more unused dependencies 2018-10-28 17:33:41 -07:00
Antoine Gersant
a8a98fdd22 Removed iron 2018-10-28 17:27:47 -07:00
Antoine Gersant
36e6016e67 Added endpoint for trigger reindex 2018-10-28 10:19:07 -07:00
Antoine Gersant
0ebcc8a280 Autoformat 2018-10-27 17:00:49 -07:00
Antoine Gersant
e8d1baa652 Implemented endpoints to load welcome page 2018-10-27 16:59:05 -07:00
Antoine Gersant
06c694ab4a Moved rocket API to a separate file 2018-10-27 15:24:52 -07:00
Antoine Gersant
33ae1c07b2 Ported version endpoint to rocket 2018-10-27 15:19:31 -07:00
Antoine Gersant
43894d71f7 Merge branch 'master' into rocket 2018-10-27 15:05:07 -07:00
Antoine Gersant
5de59d8687 Muted diesel warning 2018-10-27 15:02:15 -07:00
Antoine Gersant
64afc8b6f5 Mount static files 2018-10-27 14:33:28 -07:00
Antoine Gersant
b528b77f77 Rocket Hello World 2018-10-27 14:03:56 -07:00
Antoine Gersant
b72517995d Clippy suggestions 2018-10-27 10:43:18 -07:00
Antoine Gersant
94d39be08b Fixed init error on Windows 2018-10-24 15:58:14 -07:00
Antoine Gersant
7814984e02 Log static web files location 2018-10-24 15:26:01 -07:00
Antoine Gersant
3fba584671 Last FM auth API now returns HTML content supplied by caller 2018-10-07 13:55:49 -07:00
Antoine Gersant
cd40ce374e Fixed build breakage on Linux 2018-10-06 21:50:51 -07:00
Antoine Gersant
fea0b4ef25 Updated diesel dependency 2018-10-06 18:13:44 -07:00
Antoine Gersant
0d05db9b46 Updated dependencies 2018-10-06 17:24:06 -07:00
Antoine Gersant
b71a1f6768 Updated dependencies 2018-10-06 17:03:06 -07:00
Antoine Gersant
ec69a3568f Fixed clippy lints 2018-10-06 16:29:46 -07:00
Antoine Gersant
0297b351bf Rustfmt 2018-10-06 15:46:30 -07:00
Antoine Gersant
2092813258 Changed LastFM auth flow from application flow to web-flow 2018-10-06 14:41:25 -07:00
Antoine Gersant
c52ec3d30c Added support for lastfm scrobbling
- Added user preferences
- Added time and location to log entries
2018-03-06 21:36:10 -08:00
Antoine Gersant
da01a3f8c2 Updated winapi dependency 2018-01-06 14:31:48 -08:00