Commit Graph

55 Commits

Author SHA1 Message Date
seydx 7f87c6e478 refactor 2025-05-20 21:40:33 +02:00
seydx 2fcbb1d836 refactor 2025-05-20 15:51:15 +02:00
seydx e5e55b7a50 improve secret vars and parse url with secrets 2025-05-20 13:05:11 +02:00
seydx 0830d8342e add secret management functions 2025-05-20 12:07:46 +02:00
Alex X 830e476120 Fix data race for memory logger #1487 2025-03-08 14:11:29 +03:00
Alex X a15deedf0d Fix YAML patch in some cases #1626 2025-03-07 21:44:23 +03:00
Alex X 2ad0ded73f Merge branch 'master' into feat-logging-to-file 2025-02-24 16:25:08 +03:00
Alex X 7fd0ec8ce6 Code refactoring for logs to file 2025-02-24 15:21:37 +03:00
Andrew Marshall 7640a42bfc Read from credential files
See https://systemd.io/CREDENTIALS/. This will also work for Docker
Secrets by setting `CREDENTIALS_DIRECTORY=/run/secrets`.
2024-11-10 17:33:22 -05:00
Alex X db6745e8ff Code refactoring after #1168 2024-06-18 20:35:17 +03:00
Sergey Krashevich 72d7e8aaaa refactor(app): remove syscall import and improve error messages 2024-06-08 15:05:26 +03:00
Sergey Krashevich ac798d9d6d fix(log): handle log file open error by writing to stdout 2024-06-06 19:07:09 +03:00
Sergey Krashevich b389d0eb9c fix(app): handle daemon process correctly on Unix systems 2024-06-06 18:54:40 +03:00
Sergey Krashevich e46fc13fea fix(log): ensure fallback to stdout if log file open fails 2024-06-06 18:25:30 +03:00
Sergey Krashevich bce0b4a8a0 feat(logging): add file output option for logging configuration 2024-06-06 18:20:44 +03:00
Alex X bf303ed471 Fix -d flag 2024-06-06 17:58:31 +03:00
Alex X e3188a0a6d Update docs about config 2024-06-06 15:21:32 +03:00
Alex X 756be9801e Code refactoring for app module 2024-06-02 07:00:29 +03:00
Alex X a6b9b4993f Code refactoring after #1141 2024-05-28 13:21:33 +03:00
Sergey Krashevich 791239be12 Merge branch 'master' into feat-log-terminal-check 2024-05-28 09:15:01 +03:00
Sergey Krashevich a79061c7c2 feat(logging): add interactive shell detection for console output 2024-05-28 09:10:51 +03:00
Alex X 8cb513cb89 Add log level for ffmpeg module 2024-05-27 20:24:24 +03:00
Alex X 4534b4d8ca Add more log customization options 2024-05-26 21:28:34 +03:00
Alex X b2399f3bb3 Update version to 1.9.2 2024-05-17 15:57:11 +03:00
Alex X 8f2bb3f34b Add support key=value pair for cli config 2024-05-13 14:14:28 +03:00
Alex X 874c07b887 Code refactoring for #1107 2024-05-13 12:42:55 +03:00
Sergey Krashevich dd7ea2657a feat(app): enhance CLI with shorthand flags and dynamic versioning
- Added shorthand flag support for `config`, `daemon`, and `version`
- Implemented dynamic version string generation using build info
- Updated flag usage output to include shorthand options and help command
2024-05-12 22:10:58 +03:00
Sergey Krashevich eaba451a47 refactor(app): streamline version info retrieval and formatting 2024-05-12 06:46:45 +03:00
Sergey Krashevich b7c11db604 feat(version): enhance version command output with VCS revision and timestamp 2024-05-12 06:36:25 +03:00
Alex X ee387b79e1 Update version output 2024-05-09 08:21:19 +03:00
Alex X a9f2b5158c Update version to 1.9.1 2024-05-06 20:35:28 +03:00
Alex X 9c98f5e769 Update version to 1.9.0 2024-04-30 14:38:59 +03:00
Alex X c7af5028be Code fix after #963 2024-04-29 10:32:42 +03:00
Alex X ee5c663467 Code refactoring after #963 2024-04-29 07:51:53 +03:00
Sergey Krashevich 3afe8d7c1d fix(daemon-mode): handle '-daemon' argument correctly for background execution
This commit fixes the issue where the '-daemon' argument was not being properly handled when re-executing the program in daemon mode. The loop removes the '-daemon' flag from the arguments slice before the program is re-run in the background, ensuring that subsequent executions do not attempt to enter daemon mode again.

The change will prevent potential errors or unexpected behavior due to the presence of the '-daemon' argument in recursive calls, making the daemon mode feature more robust and reliable.
2024-02-24 13:04:18 +03:00
Sergey Krashevich 15c27e16cc feat(app): support daemon mode on non-Windows platforms
Added a new command-line flag `-daemon` to run the application in the background as a daemon. This option is only available for non-Windows operating systems due to platform-specific process handling. When enabled, the application restarts itself with the same arguments except for the `-daemon` flag, prints the PID of the background process, and then exits the current process.
2024-02-24 10:33:02 +03:00
Alex X ccec41a10f Update version to 1.8.5 2024-01-01 09:34:44 +03:00
Alex X d3bc18c369 Logs refactoring after #780 2023-12-11 18:07:38 +03:00
Sergey Krashevich 0a8ab9bbd1 Update app.go to remove the unused variable LogFilePath 2023-12-05 17:50:51 +03:00
Sergey Krashevich b60000ac34 Refactor log handling to use in-memory Logger 2023-12-05 17:44:32 +03:00
Sergey Krashevich 8d382afa0f Add log file handling and viewing capabilities
This commit introduces the ability to handle log files through the API and
provides a new log viewing page. The API now supports GET and DELETE methods
for log file operations, allowing retrieval and deletion of log contents.
A new log.html page has been added for viewing logs in the browser, with
automatic refresh every 5 seconds and styling based on log levels.

The app.go file has been updated to include a GetLogFilepath function that
retrieves or generates the log file path. The NewLogger function now accepts
a file parameter to enable file logging. The main.js file has been updated
to include a link to the new log.html page.

This enhancement improves the observability and management of the application
by providing real-time access to logs and the ability to clear them directly
from the web interface.
2023-11-26 23:21:57 +03:00
Alex X a87dafbbec Update version to 1.8.4 2023-11-19 18:38:26 +03:00
Alex X befa6bd356 Update version to 1.8.3 2023-11-15 12:20:47 +03:00
Alex X 50e2a626a6 Update version to 1.8.2 2023-11-04 18:49:56 +03:00
Alex X 20d45bff92 Update to version 1.8.1 2023-10-15 20:15:35 +03:00
Alex X e367940bd9 Fix version in API 2023-10-15 09:37:24 +03:00
Alex X 6f2af78392 Update version to 1.8.0 2023-10-14 17:19:19 +03:00
Alexey Khit c8ac6b2271 Update version to 1.7.1 2023-09-10 20:19:20 +03:00
Alexey Khit fc1b6af436 Update version to 1.7.0 2023-09-02 16:05:09 +03:00
Alexey Khit 9f404d965f Rewrite HomeKit pairing API 2023-09-01 22:48:06 +03:00