Skip to content

Run Metribay yourself

Self-hosted, Lično izdanje, je Metribay na tvom serveru. Besplatno, open source, Apache-2.0.

Self-hosted Metribay Cloud
Cost Free See Plans and billing
People One person Teams with roles
Workspaces One, in the background Up to 5
Projects and data sources No limit 10 and 50 active
Integrations All seven All seven
Updates, backups, uptime You Us
Google sign-in button Your own Google app Provided when available

Self-hosting ako znaš PHP app i sopstveni hardver. Cloud ako ne želiš server ops ili tim.

  • PHP 8.5+ sa cURL, OpenSSL, PDO (SQLite or PostgreSQL), intl, mbstring
  • Composer 2
  • SQLite or PostgreSQL
  • systemd/Supervisor + cron za pozadinske procese
  • Node 24 samo za rebuild frontend-a; release uključuje assets
  1. Iz root-a repozitorijuma, pa app:

    Terminal window
    ./scripts/setup.sh
    cd standalone
  2. Nalog (lozinka se pita privatno):

    Terminal window
    php artisan metribay:install [email protected]
  3. Web server. Brzi lokalni:

    Terminal window
    php artisan serve --host=127.0.0.1 --port=8000

    Produkcija: standalone/public preko HTTPS.

  4. Queue worker + scheduler:

    Terminal window
    php artisan queue:work --timeout=900
    php artisan schedule:work

    Produkcija: process manager + cron php artisan schedule:run svakog minuta.

Sign in sa install email/password. Registration off — jedan nalog.

Scheduler: collection svaka 4h, uptime hourly, full history weekly — kao Cloud. Treba queue worker + scheduler.

Ručni sync:

Terminal window
php artisan metribay:sync # queue every active data source
php artisan metribay:sync --kind=github # only one provider
php artisan metribay:sync --except=uptimerobot
php artisan metribay:sync --source=12 # one data source by ID
php artisan metribay:sync --full # reread the whole history window
php artisan metribay:sync --inline # run now, without the queue

Sopstveni credentials po integration guides. Ništa kroz Metribay servere.

Poveži Google za Analytics/Search Console — sopstveni OAuth client:

  1. Google Cloud: enable Analytics Admin, Analytics Data, Search Console APIs.

  2. OAuth Web application, redirect: https://metribay.example.com/integrations/google/callback

  3. .env:

    METRIBAY_GOOGLE_CLIENT_ID=your-client-id
    METRIBAY_GOOGLE_CLIENT_SECRET=your-client-secret
    METRIBAY_GOOGLE_REDIRECT_URI=https://metribay.example.com/integrations/google/callback

Google app u testing: sign-in ističe posle 7 dana. Service accounts ne.

  • HTTPS, APP_ENV=production, APP_DEBUG=false

  • .env, DB, backup-i van public web-a

  • Nikad keširaj signed-in stranice na CDN/proxy

  • Posle update-a:

    Terminal window
    php artisan migrate --force
    php artisan vendor:publish --tag=metribay-assets --force
    php artisan queue:restart
  • Mail transport za password reset

  • Database. SQLite online backup; PostgreSQL pg_dump.
  • APP_KEY. Šifruje credentials — bez key-a DB backup ne pomaže. Ne menjaj key bez plana re-encrypt.

Testiraj restore. Configuration export pomaže ali nije pun backup — nema history/credentials.

Export configuration, Cloud sign up, connected accounts ista imena, import. Cloud ponovo skuplja istoriju u history window-u.