Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. English
  3. ioBroker general
  4. Run iobroker behind a proxy

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    15
    1
    448

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.0k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.3k

Run iobroker behind a proxy

Geplant Angeheftet Gesperrt Verschoben ioBroker general
1 Beiträge 1 Kommentatoren 467 Aufrufe 1 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • Peter BauerP Offline
    Peter BauerP Offline
    Peter Bauer
    schrieb am zuletzt editiert von
    #1

    Hi *!

    Since I had to run iobroker behind a web proxy, I had to solve the issue that node does not support proxy requests out of the box.

    The solution was to install node-global-proxy like this

    # make npm proxy ready
    > npm config set proxy http://192.168.0.1:8080
    
    # next, install node-global-proxy in iobroker directory
    > cd /opt/iobroker
    > npm install node-global-proxy --save
    
    # edit controller.js
    > vi /opt/iobroker/node_modules/iobroker.js-controller/controller.js
    

    and make sure it looks like this:

    /**
     *      Redirect for older installations
     *
     *      Copyright 2018-2022 bluefox <dogafox@gmail.com>,
     *      MIT License
     *
     */
    const proxy = require("node-global-proxy").default;
     
    proxy.setConfig("proxy.corp.itserv.de:8080");
    proxy.start();
    
    require('./main').init();
    

    just in case this helps somebody in the future.

    If the integration can be done better than editing controller.js, please tell me. Thank you.

    1 Antwort Letzte Antwort
    1
    Antworten
    • In einem neuen Thema antworten
    Anmelden zum Antworten
    • Älteste zuerst
    • Neuste zuerst
    • Meiste Stimmen


    Support us

    ioBroker
    Community Adapters
    Donate

    705

    Online

    32.5k

    Benutzer

    81.6k

    Themen

    1.3m

    Beiträge
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
    ioBroker Community 2014-2025
    logo
    • Anmelden

    • Du hast noch kein Konto? Registrieren

    • Anmelden oder registrieren, um zu suchen
    • Erster Beitrag
      Letzter Beitrag
    0
    • Home
    • Aktuell
    • Tags
    • Ungelesen 0
    • Kategorien
    • Unreplied
    • Beliebt
    • GitHub
    • Docu
    • Hilfe