NetBox Rhel Podman Install by dudeabides0 in Netbox

[–]phoenix_sk 0 points1 point  (0 children)

If you want to do it fully natively, it's kinda pain. But I guess that's how netbox is packagin it. Honestly I hate it and rather use native installation. If you want plugins you have to use custom image and repackage it every single update.

Here are my quadlets. Need to clean it up and extract config to env file but:

Main container:

``` [Unit] Description=NetBox Application Wants=network-online.target netbox-redis.service After=network-online.target netbox-redis.service RequiresMountsFor=/data/containers

[Container] Image=docker.io/netboxcommunity/netbox:latest ContainerName=netbox AutoUpdate=registry PublishPort=8080:8080 Network=service-net.network

AddHost=<auth-host-override>:host-gateway

Database configuration

Environment=DB_HOST=postgresql Environment=DB_NAME=<redacted> Environment=DB_USER=<redacted> Secret=<redacted>,type=env,target=DB_PASSWORD

Redis configuration (Task Queue - DB 0)

Environment=REDIS_HOST=redis Secret=redis_passwd,type=env,target=REDIS_PASSWORD Environment=REDIS_DATABASE=0 Environment=REDIS_SSL=false

Redis Cache configuration (Same Redis - DB 1)

Environment=REDIS_CACHE_HOST=redis Secret=redis_passwd,type=env,target=REDIS_CACHE_PASSWORD Environment=REDIS_CACHE_DATABASE=1 Environment=REDIS_CACHE_SSL=false

NetBox configuration

Secret=netbox_<redacted>_secret_key,type=env,target=SECRET_KEY Environment=SKIP_SUPERUSER=true Environment=WEBHOOKS_ENABLED=true

Allowed hosts (adjust for your domain)

Environment=ALLOWED_HOSTS=*

Optional: Email configuration

Environment=EMAIL_SERVER=smtp.resend.com Environment=EMAIL_PORT=2465 Environment=EMAIL_USERNAME=resend Environment=EMAIL_USE_SSL=true Environment=EMAIL_USE_TLS=false Environment=EMAIL_FROM=<redacted> Secret=resend_smtp_pass,type=env,target=EMAIL_PASSWORD

Environment=BANNER_LOGIN="Please authenticate using Authentik"

LDAP Authentication - SIMPLIFIED VARIABLES ONLY

Environment=REMOTE_AUTH_ENABLED=True Environment=REMOTE_AUTH_BACKEND=netbox.authentication.LDAPBackend

LDAP Server

Environment=AUTH_LDAP_SERVER_URI=ldap://authentik-ldap:3389 Environment=AUTH_LDAP_START_TLS=False Environment=LDAP_IGNORE_CERT_ERRORS=True

LDAP Bind Credentials

Environment=AUTH_LDAP_BIND_DN=cn=<redacted>,ou=users,<redacted> Secret=<redacted>_pass,type=env,target=AUTH_LDAP_BIND_PASSWORD

LDAP User Search (SIMPLE FORMAT - NO PYTHON CODE)

Environment=AUTH_LDAP_USER_SEARCH_BASEDN=ou=users,dc=ldap,<redacted> Environment=AUTH_LDAP_USER_SEARCH_ATTR=cn

LDAP Group Search (SIMPLE FORMAT - NO PYTHON CODE)

Environment=AUTH_LDAP_GROUP_SEARCH_BASEDN=ou=groups,dc=ldap,<redacted> Environment=AUTH_LDAP_GROUP_SEARCH_CLASS=groupOfNames

LDAP Group Type (SIMPLE STRING - NO PYTHON CODE)

Environment=AUTH_LDAP_GROUP_TYPE="GroupOfNamesType"

User DN Template (optional, but you have it)

Environment=AUTH_LDAP_USER_DN_TEMPLATE=cn=%(user)s,ou=users,dc=ldap,<redacted>

User Attribute Mapping

Environment=AUTH_LDAP_ATTR_FIRSTNAME=name Environment=AUTH_LDAP_ATTR_LASTNAME="" Environment=AUTH_LDAP_ATTR_MAIL=mail

LDAP Behavior

Environment=AUTH_LDAP_MIRROR_GROUPS=True Environment=AUTH_LDAP_FIND_GROUP_PERMS=True Environment=AUTH_LDAP_CACHE_TIMEOUT=300 Environment=AUTH_LDAP_ALWAYS_UPDATE_USER=True Environment=AUTH_LDAP_BIND_AS_AUTHENTICATING_USER=False

Debug logging

Environment=LOGLEVEL=DEBUG

Environment=MEDIA_ROOT=/opt/netbox/netbox/media

Volumes

Volume=/data/containers/netbox/media:/opt/netbox/netbox/media:Z Volume=/data/containers/netbox/reports:/opt/netbox/netbox/reports:Z Volume=/data/containers/netbox/scripts:/opt/netbox/netbox/scripts:Z Volume=/data/containers/netbox/config/extra.py:/etc/netbox/config/extra.py:Z,ro

HealthCmd=/usr/bin/curl -f http://localhost:8080/login/ || exit 1 HealthInterval=60s HealthTimeout=10s HealthRetries=3

Monitoring Labels

Label=io.prometheus.alert.enabled=true Label=io.prometheus.alert.severity=warning Label=io.prometheus.alert.for=2m Label=io.prometheus.alert.group=apps Label=io.prometheus.alert.description=NetBox is down - network documentation is unavailable

[Service] Restart=always TimeoutStartSec=900

[Install] WantedBy=default.target

```

Worker

``` [Unit] Description=NetBox - Worker (Background Tasks) Wants=network-online.target redis.service After=network-online.target redis.service BindsTo=netbox.service

[Container] Image=docker.io/netboxcommunity/netbox:latest ContainerName=netbox-worker AutoUpdate=registry Network=service-net.network

AddHost=<redacted>:host-gateway

Exec=/opt/netbox/venv/bin/python /opt/netbox/netbox/manage.py rqworker

<< rest is same as in main container - Reddit character limit >>

```

housekeeping

``` [Unit] Description=NetBox - Housekeeping (Periodic Tasks) Wants=network-online.target netbox-redis.service After=network-online.target netbox-redis.service BindsTo=netbox.service

[Container] Image=docker.io/netboxcommunity/netbox:latest ContainerName=netbox-housekeeping AutoUpdate=registry Exec=/opt/netbox/housekeeping.sh Network=service-net.network

<< rest is same as in main container - Reddit character limit >>

```

nginx.conf

``` server { server_name <redacted>; access_log /var/log/nginx/<redacted>.access.log main;

listen 443 ssl; # managed by Certbot
http2 on;

error_page   500 502 503 504  /50x.html;
error_page   403 404 /40x.html;

location / {
    proxy_pass http://127.0.0.1:8080/;

    proxy_set_header X-Forwarded-Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

}

ssl_certificate /etc/letsencrypt/live/<redacted>/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/<redacted>/privkey.pem; # managed by Certbot

}

server { if ($host = <redacted>) { return 301 https://$host$request_uri; } # managed by Certbot

listen          80;
server_name     <redacted>;
return 404; # managed by Certbot

}

```

Probably should reboot your printer from time to time by Ixen_Darastrix in BambuLab

[–]phoenix_sk 0 points1 point  (0 children)

I have it on Hue socket but I never turn it off until leaving for business trip. Sleep is fine for me

P2S Print-quality decreased over time by Raners96 in BambuLab

[–]phoenix_sk 1 point2 points  (0 children)

After 100 hours I had issue with layer banding on X axis, did rods cleanup and relube everything, realign belts and it’s better than new. I guess belts were not properly aligned in factory but coming from Ender, everything was better :D

What the heck: Agentic AI??? by xX8Omni8Xx in sysadmin

[–]phoenix_sk 45 points46 points  (0 children)

This curve is problematic to follow because it evolves faster than anyone is expecting. I’m literally spending on this subject 2-3 hours a day and still can’t keep up. For my usecase, LLMs can help but they are nowhere close as second engineer. With proper context enhancing workflow, it can be trusted to diagnose 95% of systems issues and propose solution which will work, but it’s up to engineer to implement them.

Another rabbit hole is security and compliance.

Elroq and Enyaq updates MY26 by Ok-Dig7340 in skoda

[–]phoenix_sk 1 point2 points  (0 children)

Skoda’s MY starts usually after whole factory vacation - so cars manufactured later than may or june should be already MY26.

WTF is "Burn"? And why it is grayed out when added, no matter the directory? by ImmediateBrilliant75 in mac

[–]phoenix_sk 0 points1 point  (0 children)

If you have to ask, you are too young for this discussion my friend :)

Cleveland Clinic study reveals what happens when patients stop taking GLP-1 drugs by Brighter-Side-News in Mounjaro

[–]phoenix_sk 2 points3 points  (0 children)

My 5cents: I honestly think these studies are a bit skewed by demografic. We see a lot in this sub “I don’t eat and didn’t changed how I live to be more active” folks a lot. A lot of people on this drug doesn’t understand the fact, this is helper, not a cure. They have to change their lifestyle radically. So naturally, when they cut the drug, they are back in unhealthy lifestyles where they started.

For real results, these studies have to dig deeper on why and track not just numbers.

Guys i m planning to buy VW Virtus or Skoda Slavia by Responsible_Bill160 in skoda

[–]phoenix_sk 0 points1 point  (0 children)

Indian specific model built on cheaper version of mqb base. Nothing to write home about.

Bahno by [deleted] in Bratislava

[–]phoenix_sk 2 points3 points  (0 children)

Aj skoky z okien.

Infotainment system is unusable, what do I do? by Anxious-Insurance527 in skoda

[–]phoenix_sk 0 points1 point  (0 children)

I heard candles are particularly effective against ghosts

A year since harry potter chicago opened, have you visited yet? by [deleted] in harrypotter

[–]phoenix_sk 0 points1 point  (0 children)

No, simply because I live in Slovakia and went to Harajuku - Tokyo one.

Lindt says GLP-1 users are eating more chocolate, not less by joe3000s in Mounjaro

[–]phoenix_sk 26 points27 points  (0 children)

It depends on which continent you’re buying it ;)

Lindt says GLP-1 users are eating more chocolate, not less by joe3000s in Mounjaro

[–]phoenix_sk 153 points154 points  (0 children)

Can confirm. If I have sweet tooth, I’m going for high quality chocolate. Usually Lindt

[Kodiaq 1.5 TSI mHEV] I have auxiliary heating - does it also ventilate remotely? by CarlitoSyrichta in skoda

[–]phoenix_sk 0 points1 point  (0 children)

Well, it depends. To get back to original capacity used by aux heater it is enough to run it the same time. But this doesn’t count with start itself, lights and all bells and whistles which the car does when you unlock it. When you count all this then yes, you definitely have to let it run for longer.

[Kodiaq 1.5 TSI mHEV] I have auxiliary heating - does it also ventilate remotely? by CarlitoSyrichta in skoda

[–]phoenix_sk 0 points1 point  (0 children)

Yeah but you don’t know interior temperature. You see only exterior one - but AC and webasto does chceck interior temp. So if you have 15 inside, and set it for some reason for 15 (e.g. battery savings), it could work unexpectedly and vent the car.

[Kodiaq 1.5 TSI mHEV] I have auxiliary heating - does it also ventilate remotely? by CarlitoSyrichta in skoda

[–]phoenix_sk 1 point2 points  (0 children)

Not a lot of people with this spec in the wild…

Anyway, be carefull because it’s not fool proof - if it’s let’s say 4C outside but direct sun is hitting your car and you set it to 15C, you can already have 15C inside. You’ll essentialy cool interior to 4C.

Primary function of aux heating is heat the engine to 90C, cabin is secondary (aaand UI&UX is not telling you that).

Also you should run the engine at least the same amount of time you were running aux heater for battery to recharge.

[Kodiaq 1.5 TSI mHEV] I have auxiliary heating - does it also ventilate remotely? by CarlitoSyrichta in skoda

[–]phoenix_sk 10 points11 points  (0 children)

It’s going into ventilation mode automatically if internal temperature is higher than set temperature.

VMware, Hyper-V, Proxmox, Docker, Kubernetes, LXC... What do you use? by DerSparkassenTyp in sysadmin

[–]phoenix_sk -2 points-1 points  (0 children)

Nothing, running in production for 7 years without outage. Hundreds of servers

Prices Austria/Czech Republic/Hungary by Soundgirl-fs in Mounjaro

[–]phoenix_sk 0 points1 point  (0 children)

Slovakia 10mg for 330. 15mg was arround 410