📜 Log reader for Nextcloud
Перейти к файлу
Ferdinand Thiessen ea032e803d
chore: Compile assets
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-12 00:21:15 +01:00
.github chore: Drop PHPUnit for all but sqlite as we do not use any database 2023-11-09 13:19:18 +01:00
.tx
appinfo allow printing log messages during occ 2023-09-18 16:38:49 +02:00
css chore: Compile assets 2023-11-12 00:21:15 +01:00
img
js chore: Compile assets 2023-11-12 00:21:15 +01:00
l10n Fix(l10n): Update translations from Transifex 2023-11-11 01:08:43 +00:00
lib feat: Rotate internal log file 2023-11-12 00:21:15 +01:00
screenshots
src feat: Allow to show all log types by adding an internal log file for non-file based loggers 2023-11-12 00:21:11 +01:00
templates fix: Update `@nextcloud/vue` to 8.0.1 and also fix CSS name for settings section 2023-11-10 22:09:19 +01:00
tests fix: Adjust psalm stubs 2023-11-12 00:21:15 +01:00
.gitattributes
.gitignore feat(tests): Add unit tests for frontend code (utils & stores) 2023-07-20 17:57:39 +02:00
.l10nignore
.php-cs-fixer.dist.php
Makefile
README.md fix: Restructure frontend files for Typescript interfaces and fix missing functions 2023-07-20 17:57:39 +02:00
composer.json chore: Update psalm and the psalm workflow 2023-11-09 13:13:26 +01:00
composer.lock chore: Drop PHPUnit for all but sqlite as we do not use any database 2023-11-09 13:19:18 +01:00
package-lock.json fix: Update `@nextcloud/vue` to 8.0.1 and also fix CSS name for settings section 2023-11-10 22:09:19 +01:00
package.json fix: Update `@nextcloud/vue` to 8.0.1 and also fix CSS name for settings section 2023-11-10 22:09:19 +01:00
psalm.xml fix: Adjust psalm stubs 2023-11-12 00:21:15 +01:00
tsconfig.json fix: Restructure frontend files for Typescript interfaces and fix missing functions 2023-07-20 17:57:39 +02:00
vite.config.ts fix: Adjust vite config for updated package 2023-11-09 18:44:43 +01:00

README.md

Log Reader

screenshot

Log reader for Nextcloud with clean exception display, infinite scrolling and more.

Install instructions

Installed by default

Log Reader is installed by default in recent versions of Nextcloud so you don't have to do anything else to use the app.

Install the latest stable release manually

  • Download the last pre-build release
  • Extract the tar.gz into the apps folder

Install from source

  • clone the repo in the apps folder
  • Run make in the logreader folder

Developing

For building the app node and npm are required

Building

Building the app can be done using the Makefile

make

Automatic rebuilding during development

During development the webpack dev server can be used to automatically build the code for every change.

Since the compiled source from the webpack dev server need to be injected in the regular Nextcloud sources a proxy setup is needed to combine things.

If your local Nextcloud setup runs at http://localcloud an nginx configuration for the proxy would look like the following:

server {
    listen 81;
    server_name localcloud;

    location /apps/logreader/build/main.js {
        proxy_pass http://localhost:3000/build/main.js;
    }
    location /apps/logreader/build/main.css {
        return 404;
    }
    
    location /build {
        proxy_pass http://localhost:3000;
    }
    location /__webpack_hmr {
        proxy_set_header Host $host;
        proxy_pass http://localhost:3000;
        proxy_set_header Connection '';
        proxy_http_version 1.1;
        chunked_transfer_encoding off;
        proxy_buffering off;
        proxy_cache off;
    }

    location / {
        proxy_set_header Host $host;
        proxy_hide_header Content-Security-Policy;
        proxy_pass http://localcloud/;
    }
}

This will run the proxy at http://localcloud:81/

With the proxy configured you can start the webpack dev server and specify where the Nextcloud proxy is.

PROXY_URL="http://localcloud:81/ make watch