tofubl

joined 2 years ago
[–] tofubl@discuss.tchncs.de 4 points 4 months ago

I think OSMC does this.

[–] tofubl@discuss.tchncs.de 3 points 4 months ago* (last edited 4 months ago)

You can set up your project in a private repo and in your deploy action push it to the main branch of your public Pages repo. I agree it's not a huge deal to show the source, but I prefer it like that.

name: Deploy Hugo site to Github Pages

on:
  push:
    branches:
      - main
    workflow_dispatch:

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository
        uses: actions/checkout@v4

      - name: Set up Hugo
        uses: peaceiris/actions-hugo@v3
        with:
          hugo-version: "0.119.0"
          extended: true

      - name: Build
        run: hugo --minify

      - name: Configure Git
        run: |
          git config --global user.email "you@example.com"
          git config --global user.name "Your Name"
      - name: Deploy to GitHub Pages
        env:
          GITHUB_TOKEN: ${{ secrets.DEPLOY_TOKEN }}
        run: |
          cd public
          git init
          git remote add origin https://user/:${{ secrets.DEPLOY_TOKEN }}@github.com/USER/USER.github.io.git
          git checkout -b main
          git add .
          git commit -m "Deploy site"
          git push -f origin main

edit: Markdown is adding a / after "user" in above git remote command. Don't know how to get rid of it.

[–] tofubl@discuss.tchncs.de 2 points 4 months ago

Thanks, good read. Which dryer does everybody use?

[–] tofubl@discuss.tchncs.de 3 points 4 months ago* (last edited 4 months ago)

My Nextcloud journey went from a Raspberry Pi 2B with a single USB HDD over a Pi 3B to a QNAP 2bay NAS on RAID 1 with a proper backup strategy including daily encrypted cloud backup. Having come to rely on the setup much more than when I was starting out playing with it years ago, I sleep much easier now. That said, I never lost any data, even on very questionable hardware without any redundancy whatsoever.

[–] tofubl@discuss.tchncs.de 1 points 4 months ago* (last edited 4 months ago)

If you're not very set on hosting at home, hosting a static Hugo page directly on Github Pages is incredibly convenient and easy (and free.) With the right Github Action, updating the site is as simple as pushing content to the main branch and it automatically deploys. And should Github ever give you a reason to do so, moving away is as simple as copying your static files to any other webhost and pointing your domain there instead.

Edit: It's of course equally easy to deploy on your NAS - just a basic nginx serving the directory with your static site that Hugo generated.

[–] tofubl@discuss.tchncs.de 7 points 4 months ago (2 children)

Are you looking for advice regarding administration or the platform?

I say for a simple blog it's hard to beat Hugo. There are plenty of nice themes and easily adjustable, too with a bit of html/css.

[–] tofubl@discuss.tchncs.de 2 points 4 months ago

Short blogs with few but high quality articles are actually the salt of the earth.

I encourage you to do it, there are many options like Hugo, and your intellectual property will never be locked in a company's app store (Prusa seems trustworthy for now, but as we've seen, lockout is always just a TOS change away.)

You already have the writeup and hosting a static site on github pages or similar doesn't incur costs, so the only thing you need is some time and a domain. 🙂

[–] tofubl@discuss.tchncs.de 17 points 4 months ago* (last edited 4 months ago) (2 children)

Anyone remember that video of a guy proving he can cook chicken by slapping it many times?

this one, probably

[–] tofubl@discuss.tchncs.de 1 points 4 months ago

I need to use the IP for specific reasons concerning my setup; and I don't want the two containers to share a Docker network.

This used to work exactly as is when I set it up, but doesn't anymore.

I tinkered with it some more now and I found that while I can ping the docker host, I can't actually wget anything from any docker services from within the Homepage container. Currently at a loss why that might be.

[–] tofubl@discuss.tchncs.de 0 points 4 months ago (2 children)

Would love to see it.

Here's mine from the Paperless compose.yml (non functional):

  webserver:
    image: ghcr.io/paperless-ngx/paperless-ngx
    [...]
    labels:
      - homepage.group=Productivity
      - homepage.name=Paperless
      - homepage.icon=paperless.png
      - homepage.href=https://[LOCAL URL]
      - homepage.description=Document Management
      - homepage.widget.type=paperlessngx
      - homepage.widget.url=http://[PAPERLESS IP:PORT]
      - homepage.widget.key=[PAPERLESS API TOKEN]

And here's the error from Homepage frontend:

    API Error: Unknown error
    URL: http://[PAPERLESS IP:PORT]/api/statistics/?format=json
    Raw Error:
    {
        "errno": -110,
        "code": "ETIMEDOUT",
        "syscall": "connect",
        "address": "[PAPERLESS IP]",
        "port": [PAPERLESS PORT]
    }
[–] tofubl@discuss.tchncs.de 4 points 4 months ago (4 children)

I don't think it's you. The paperless widget stopped working for me recently after it had been fine before. Similar setup to yours.

It bothered me a little but since the widget isn't actually very useful to me I didn't care to invest more time to get to the bottom of it.

view more: ‹ prev next ›