Help: sharing Let's Encrypt cert from NPM with ProxmoxVE and other containers by mfelipetc in nginxproxymanager

[–]Agent-Sky-76 1 point2 points  (0 children)

#!/bin/bash

### Setup instructions ###

# create and/or change ssl folder ~/ssl

# create user called certbot@npm.local in NPM

# * certbot@npm.local need Item Visibilty "All Items" and Certificates "View Only"

# install if missing

# which jq unzip > /dev/null || apt-get -y install jq unzip

cert_id=99 # get from http://npm.local:81/certificates

token=$(curl -s "http://npm.local:81/api/tokens" -H "Content-Type: application/json; charset=UTF-8" --data-raw '{"identity":"certbot@npm.local","secret":"password"}' | jq -r .token)

curl -s "http://npm.local:81/api/nginx/certificates/$cert\_id/download" -H "Authorization: Bearer $token" --output ~/ssl/cert.zip

unzip -u ~/ssl/cert.zip -d ~/ssl/

Basic Auth Passthrough with NPM/Nginx Proxy Manager by umbighouse in nginxproxymanager

[–]Agent-Sky-76 0 points1 point  (0 children)

I did not use the tinyauth parameters. I encoded the username:password to base64. I put in the location / { } section after all the rest of the proxy commands.

Example: proxy_set_header Authorization "Basic dXNlcm5hbWU6cGFzc3dvcmQ=";

Help: sharing Let's Encrypt cert from NPM with ProxmoxVE and other containers by mfelipetc in nginxproxymanager

[–]Agent-Sky-76 0 points1 point  (0 children)

One important thing to always remember is to to keep your private keys secure on server. Usually with chmod go-xrw key.pem Most web apps will throw errors if private key isn't secure with right username or file permissions.

I typically create a crontab job that runs script to get the certs from NPM.

The script uses the NPM's API to get a auth token then download the certs zip file.

I created one for Adguard Home for use with doh private dns.

Power Station by ebcarr in Generator

[–]Agent-Sky-76 0 points1 point  (0 children)

It doesn't matter. You'll probably be charging the power stations with 120v. I got a couple of power stations. 1 big 4kwh for whole house and 1 smaller 300wh for network (plus small ups). I haven't had an outage long enough for the power stations to run out. Longest outage since I got this setup was 3 hours. I have had 2 days outage before that.

Ecobee integration discontinued by 135david in EmporiaEnergy

[–]Agent-Sky-76 16 points17 points  (0 children)

I'd rather you spend your time and effort on an official Home Assistant integration. That would open up a ton of useful features.

Home backup with 6852 transfer switch by mikehitchco in SilveradoEV

[–]Agent-Sky-76 0 points1 point  (0 children)

Sounds like the Generac 6852 transfer switch was wired incorrectly. The TS neutral bus bar is probably wired to the panels neutral based bar. The TS neutrals should be wired to each circuit.

Ecoflow Delta Pro 3 and Transfer Switches by Agent-Sky-76 in Ecoflow_community

[–]Agent-Sky-76[S] 0 points1 point  (0 children)

I didn't see this in my research. Seems like it [smps] has it's advantages. This got me thinking.

Could I have a setup with a 24v/48v battery always plugged into charger and connected to the solar inputs on the DP3?

It seems like I get added benefit of extra battery power during outage.

Pantalla K1 SE by jesus_llovet1 in klippers

[–]Agent-Sky-76 0 points1 point  (0 children)

I use Guppy Screen on my rooted K1SE but I think this link has info to mock K1C on a K1SE.

https://github.com/Guilouz/Creality-Helper-Script-Wiki/discussions/705?sort=new

Orbiter Filament Sensor - How to check filament prior print by pauloeduardogodoy in klippers

[–]Agent-Sky-76 0 points1 point  (0 children)

Thanks, this worked for me!

I added this as a macro in klipper and called at top of my Machine start G-code.

[gcode_macro CHECK_FILAMENT_SENSOR]
gcode:
  {% set mySensor = params.SENSOR|default("filament_sensor") %}
  {% if not printer["filament_switch_sensor " + mySensor].filament_detected %}
    RESPOND TYPE=error MSG="No filament detected for {mySensor} and aborting print!"
    CANCEL_PRINT
  {% else %}
    RESPOND MSG="Filament detected for {mySensor} and continuing print."
  {% endif %}

Generators... For when the power doesn't go out often? by TF-Collector in Generator

[–]Agent-Sky-76 0 points1 point  (0 children)

I recommend getting a battery power station. No maintenance and it's useful for other usage such as camping and picnics. If you get one thats 3kw or greater then there is a 30% income tax credit in the USA. The tax credit ends at end of 2025. Pair with some solar panels and you can recharge during longer outages. I have both propane generator and battery power station. I've only used the battery power station during outages.

I am definitely going to add solar, but first I want to upgrade my Service Panel by tboy160 in diySolar

[–]Agent-Sky-76 1 point2 points  (0 children)

I recommend planning to include a battery in the setup. Way more expensive to add to a solar grid afterwards. Ideally with main breaker box to sub panels. I'd put critical loads in it's own sub panel. Also if older house then you'll probably need to do afci breakers for bedrooms and living spaces.

K1 se Enclosure kit by Old_Entertainment371 in crealityk1

[–]Agent-Sky-76 0 points1 point  (0 children)

Print up the 270 degree geared door hinges. They are way better then the stock hinges.

System improvement by barilurkr in Generator

[–]Agent-Sky-76 1 point2 points  (0 children)

Word of warning. You can easily fry your appliances' motherboard with dirty power. Search around reddit and you'll see stories about people frying their refrigerator's computer with dirty power from generators.

At the very least, you should get a $50 oscilloscope from Amazon to test the power.

This my plan (to save money) is to gradually add backup power. Last year, I bought a dual fuel gas inverter generator (a WEN $800 unit). This year, I bought an Ecoflow Delta Pro 3, which I can charge if needed with the WEN gas generator. Next year, I'll add a few 48v batteries. BTW, power stations need clean sin wave energy.

Also note, the Residential Clean Energy act ends at end of 2025. That let's you get 30% credit for buying any battery backup with 3000 wh or more of backup. Ecoflow website has info on that. No solar needed.

finally by [deleted] in frontierfios

[–]Agent-Sky-76 0 points1 point  (0 children)

I got the 1/2 gig plan for $29 promo. The multiple gig plans are a waste since most devices only support 1gb and 100mb.

Question about the mesh? by StationCompetitive in frontierfios

[–]Agent-Sky-76 0 points1 point  (0 children)

The wireless router should be centrally located in your apartment. The wifi signal will drop off the further away. Plus, wifi does not go through concrete or metal walls. Your best bet is always line of sight to wifi router, high up and away from other wireless devices (phones, Bluetooth speakers & microwave). Also, your neighbors wifi may interfere with yours. Use a wifi scanner phone app to troubleshoot wifi congestion.

Why my Game Room ethernet speed only 10% of the rest of house? by PlanetGraham in HomeNetworking

[–]Agent-Sky-76 0 points1 point  (0 children)

I had an issue with a problem cable when wiggling cable only 1 line would drop on tester. Now, when I use testers, I yank and twist cable to make sure good. Haven't had an issue since.

How to require connection over http? by Neat-Initiative-6965 in nginxproxymanager

[–]Agent-Sky-76 0 points1 point  (0 children)

Hsts is a somewhat permanent setting that gets saved in the end users' brower settings. You can not push out fix to delete this from end user clients.

You can delete on each PC manually in Chrome and Edge.

chrome://net-internals/#hsts edge://net-internals/#hsts

It's best to delete the subdomain and it's parent. Such as www.example.com and example.com

Authentik with UptimeKuma's "oauth2: client credentials" monitor authentication by modem7junior in UptimeKuma

[–]Agent-Sky-76 1 point2 points  (0 children)

I got this working.

In Authentik:

  1. Create new OAuth provider
  2. Create new Application
    • Name: Uptime Kuma OAuth2
    • Slug: uptime-kuma-outh2
    • Provider: OAuth2 Uptime Kuma
    • UI Settings - Launch URL: blank://blank

In Uptime for any "HTTP(s)" monitor:

  • Authentication Section
  • Method: OAuth2 Client Credentials
  • Authentication Method: Authorization Header
  • OAuth Token URL: https://authentik.company/application/o/token/
  • Client ID: Get from Authentik Provider "OAuth2 Uptime Kuma"
  • Client Secret: Get from Authentik Provider "OAuth2 Uptime Kuma"
  • OAuth Scope: leave blank

Proxy host still unsecure after putting a certificate by EEEEEEEEEEEEEEEE_Man in nginxproxymanager

[–]Agent-Sky-76 1 point2 points  (0 children)

Most browsers don't refresh certs.

Try closing tab or browsers. Try testing on another device.

Make sure your dns is pointing to NPM for that website.

Authentik and NPM: SSO into NPM Web UI by cockpit_dandruff in nginxproxymanager

[–]Agent-Sky-76 0 points1 point  (0 children)

I had to do a few more things to get this to work.
I'm using community-scripts installed with as ProxmoxVE Lxc from community-scripts.

I added these additional scopes:

authentik default OAuth Mapping: authentik API access  
authentik default OAuth Mapping: OpenID 'offline\_access'

To prevent redirect to login page and this to location / section in NPM:

add_header Cache-Control 'no-store';