stefanpejcic / OpenPanel

A highly customizable web hosting control panel built with Docker 🐳
https://openpanel.com
216 stars 33 forks source link

Option to use playwright from another server #87

Closed stefanpejcic closed 5 months ago

stefanpejcic commented 7 months ago

OpenPanel version(s) affected

0.1.6

Description

We are currently using playwright library with both chrom and firefox, which can take up to 2gb of disk space on the server.

100MB /usr/local/lib/python3.10/dist-packages/playwright
1GB /root/.cache/ms-playwright

We can by default use another cdn for screenshots and optionally aloow users to set local screenshots api.

How to reproduce

in install script lets instead set another server to be used as api, and skip playwright install:

    echo "Setting the API service for website screenshots.."
    debug_log playwright install
    debug_log playwright install-deps

Possible Solution

https://git.devnet.rs/stefan/2083/-/blob/main/modules/json/screenshots.py

Additional Context

No response

stefanpejcic commented 6 months ago

External API will be used for screenshots, and only the benerated images blob will be stored on each server

stefanpejcic commented 5 months ago

https://openpanel.co/docs/changelog/0.1.9/#screenshots-api