Editing
Server
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Docker === ==== Updating Home Assistant ==== <blockquote>docker pull homeassistant/home-assistant:stable docker run --rm -v /var/run/docker.sock:/var/run/docker.sock assaflavie/runlike -p home-assistant docker stop home-assistant docker rm home-assistant</blockquote><blockquote>docker run --name=home-assistant \ --hostname=hextor \ --volume /mnt/storage5/data/home-automation/home-assistant:/config \ --volume /etc/localtime:/etc/localtime:ro \ --env=TZ=Australia/Melbourne \ --network=host \ --privileged \ --workdir=/config \ --restart=unless-stopped \ --device /dev/ttyACM0:/dev/ttyACM0 \ --log-driver=journald \ --runtime=runc \ homeassistant/home-assistant:stable</blockquote> ==== n8n ==== [https://community.n8n.io/t/use-local-directory-instead-of-docker-volume-for-n8n-data/151593/2 Docker apparently won't populate the volume if it's a local bind] giving a "Error: Command "start" not found" For the first time I created the docker volume then manually copied out the contents. This should not be necessary anymore.<blockquote>mkdir -p /mnt/storage5/data/docker/n8n docker volume create n8n_data <code>docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n</code> docker volume inspect n8n_data sudo rsync -avP /var/lib/docker/volumes/n8n_data/_data/ /mnt/storage5/data/docker/n8n/</blockquote>In order to allow connections from the network: <code>N8N_SECURE_COOKIE</code> to <code>false</code> <code>N8N_BASIC_AUTH_ACTIVE=true</code>and then add the user and password you want for <code>N8N_BASIC_AUTH_USER</code> and<code>N8N_BASIC_AUTH_PASSWORD</code> ===== How to install n8n: ===== <code> docker run -it --rm \ --name n8n \ -p 5678:5678 \ --network host \ -v /mnt/storage5/data/docker/n8n:/home/node/.n8n \ -e N8N_SECURE_COOKIE=false \ -e N8N_BASIC_AUTH_ACTIVE=true \ -e N8N_BASIC_AUTH_USER=hegemon \ -e N8N_BASIC_AUTH_PASSWORD=nopassword \ -e N8N_RUNNERS_ENABLED=true \ n8nio/n8n:stable Gogs </code> docker run --name=gogs \ --hostname=a6085e10821c \ --mac-address=02:42:ac:11:00:02 \ --volume /backup \ --volume /mnt/storage5/data/gogs:/data \ --network=bridge \ --workdir=/app/gogs \ -p 10022:22 \ -p 10080:3000 \ --restart=always \ --log-driver=journald \ --runtime=runc \ --detach=true \ gogs/gogs:0.12 \ /bin/s6-svscan /app/gogs/docker/s6/ Not sure what that executable is? The latest version of gog's 0.13 has an issue.... ==== Orpington-news ==== I created a database hegemon@hextor ~/s/r/server (master)> sudo -u postgres psql psql (16.10 (Ubuntu 16.10-0ubuntu0.24.04.1)) Type "help" for help. postgres=# CREATE DATABASE orpington; CREATE DATABASE postgres=# CREATE USER orpington WITH PASSWORD 'alpha4'; CREATE ROLE postgres=# GRANT ALL PRIVILEGES ON DATABASE orpington TO orpington; GRANT postgres=# The service is started with: docker run -it --name orpington-news --restart=always \ -e APP_URL=<nowiki>http://hextor:3333</nowiki> \ -e DB_USER=orpington \ -e DB_NAME=orpington \ -e DB_HOST=hextor \ -e DB_PASS=alpha4 \ -e DISABLE_SECURE_COOKIE=true \ -p 3333:8000 \ -d ghcr.io/frysztak/orpington-news ==== tt-rss ==== comment out the extended_filtering line in /usr/share/tt-rss/www/classes/classes/urlhelper.php:99 to allow local ips and non-standard ports Add the following to the function static function build_url($parts) { $tmp = $parts['scheme'] . "://" . $parts['host']; // Include port if it exists and is not standard if (isset($parts['port']) && !in_array($parts['port'], [<nowiki>''</nowiki>, 80, 443])) { $tmp .= ':' . $parts['port']; }
Summary:
Please note that all contributions to Hegemon Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Hegemon Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information