Skip to content

Category: Hosting

Small X Studio – AI Image Generation Entirely in Your Browser

I’ve been experimenting with running AI models locally, exploring different ways to make AI more accessible without depending on cloud services or dedicated AI servers.

My latest project, Small X Studio, takes that experimentation in a different direction: running an AI image generation model directly inside a web browser.

I was inspired by this project https://webllm.mlc.ai/ which allows you to chat with an an agent locally.

Small X Studio is a self-hosted text-to-image application built using .NET 10, JavaScript, ONNX Runtime Web, and Stable Diffusion.

Unlike traditional AI image generation applications, where your browser sends requests to a back-end running the AI model, Small X Studio performs the actual image generation locally in the browser.

The .NET application serves the website and model files. Once the browser loads the model, the image generation process happens entirely on your device.

This means:

  • No cloud AI inference service is required.
  • No dedicated GPU server is needed.
  • Prompts and image generation remain local to the browser.
  • The application can take advantage of supported GPU hardware through WebGPU.
  • CPU-based execution is available as a fallback.
  • The entire application can be self-hosted using Docker.

Code: https://github.com/xavier-hernandez/small-x-studio

Demo/Test Website: https://small-studio.xavier.cc/



Leave a Comment

What is my ip address?

Another “what is my ip address” app.

So far I have 2 apps for telling you your IP address.

One can be found here, https://yourip.sh. This is using GO and was forked from ifconfig.io. I wanted to learn GO so I forked that project and made modifications to it.

Such as…

  • Added MaxMind databases
  • Added dark mode
  • Added the ability to add other HTML elements
  • Added integration with plausible analytics

https://github.com/xavier-hernandez/yourip.sh

My other, older, app can be found here https://whatismyip.biz . This app is built in .NET, Blazor client side, running on a Linux server. This is totally custom built.

Both apps above a are docker images that I’ve created as well.

Leave a Comment

Adding Packages to Unraid

Adding packages to Unraid is a bit more challenging now that NerdTools is not integrated with Unraid. However, there are few options to add packages to Unraid.

THE DISCLAIMER FIRST

Manually copying .txz into /boot/extra can work, but it’s risky: versions can mismatch, deps may be broken, and recovery requires familiarity with mounting and editing your USB. If you must continue, backup first, verify package contents, and keep a recovery plan ready.

Possible Backup and Recovery Steps

Backup your USB flash
Always make a copy of /config (your flash’s config share) before tinkering. That way, if Unraid refuses to boot after you drop in a bad .txz, you can restore the previous working state.

Have a recovery plan
If your server won’t boot, use Unraid’s Tech-Support Mode or mount the flash on another machine to delete the offending file in /config/extra.


blah blah blah, ok, finally…

#1 Manual – copy the txz file to your /boot/extra directory. You may need to reboot for the changes to take effect. You can download files from https://slackonly.com/pub/packages/15.0-x86_64/ .

#2 Manual from NerdTools – the archive is still available, and the packages are still there. My understanding is that they should still work, https://github.com/UnRAIDES/unRAID-NerdTools/tree/main/packages/6.11 . Same deal as option #1, copy the txz file to your /boot/extra directory. You may need to reboot for the changes to take effect.

#3 un-get – Haven’t used it, but available. https://github.com/ich777/un-get . Install the plugin into Unraid, Plugins -> Install Plugin -> From Url -> https://github.com/ich777/un-get/blob/master/un-get.plg. More info: https://www.reddit.com/r/unRAID/comments/1kccok5/unget_update_script/

Leave a Comment

Upcoming Updates for Azure Pipelines Agents Images – Windows 2019 being deprecated

Upcoming Updates for Azure Pipelines Agents Images

“This deprecation affects Azure DevOps Pipeline customers only if they are using Windows Server 2019 image in a Microsoft Hosted Agent. Please note that it does not impact customers using Windows 2019 in any other Agent (Self-hosted, MDP, VMSS). Refer the guidelines given below to find out the impacted pipelines in your organization. The detailed deprecation plan is outlined below.”

Key Dates:

• Deprecation Start Date: 1st June 2025
• Brownout period: 3rd June 2025 to 24th June 2025
• Full Removal Date: 30th June 2025

Leave a Comment

Azure Pipeline image 20250527.1.0 is missing .NET SDK 9.0.300

I believe this is due to using a .NET Core project using that SDK version. The workaround right now is to add the following task to your pipeline.

For more info: https://developercommunity.visualstudio.com/t/Azure-Pipeline-image-2025052710-is-mis/10913159?sort=newest

Add Task below if using YAML

- task: UseDotNet@2
  inputs:
    packageType: 'sdk'
    version: '9.0.203'

If using the classic UI
Add task → search “Use .NET Core SDK (UseDotNet@2)”

Update the version to 9.0.203. The YAML should look like this.

This option did not work for me.

“Workaround that worked for me is setting a restore property BuildWithNetFrameworkHostedCompiler to true as documented here.
This configures the build to use a matching version of the MSBuild with the latest SDK version installed. By default a version available with installed VS is being used, creating a mismatch.”

You can also search for…

<Project Sdk="Microsoft.NET.Sdk/9.0.203">

and if found, replace it with…

<Project Sdk="Microsoft.NET.Sdk">
Leave a Comment

“Lookalike” Warnings in Google Chrome

I recently started hosting a website and didn’t realize it was throwing the error below in Chrome.

The site you just tried to visit looks fake. Attackers sometimes mimic sites by making small, hard-to-see changes to the URL.

After a lot of googling, I finally found an answer on how to get rid of it. I just started the process and will update the post later to see if it worked.

https://chromium.googlesource.com/chromium/src/+/master/docs/security/lookalikes/lookalike-domains.md#automated-warning-removal

Leave a Comment

traefik v3 example with uptime-kuma

Here is an example of Traefik, using Uptime-Kuma as an example with a domain for it plus using letsencrypt to secure the domain. We also redirect HTTP to HTTPS.

The Traefik dashboard is not secure, so please implement security or a firewall.

This is just an example.

version: "3"

services:
 uk1:
    image: louislam/uptime-kuma:1
    container_name: uk1
    volumes:
      - ./uk1-data:/app/data
    ports:
      - 3001:3001  # <Host Port>:<Container Port>
    restart: always
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.uk1.tls.certresolver=myresolver"
      - "traefik.http.routers.uk1-http.entrypoints=web"
      - "traefik.http.routers.uk1-http.rule=Host(`your_domain_here`)"
      - "traefik.http.routers.uk1-http.middlewares=uk1-https"
      - "traefik.http.middlewares.uk1-https.redirectscheme.scheme=https"
      - "traefik.http.routers.uk1.entrypoints=websecure"
      - "traefik.http.routers.uk1.rule=Host(`your_domain_here`)"
      - "traefik.http.routers.uk1.tls=true"
    depends_on:
      - traefik
 traefik:
  image: traefik:v3.0
  command:
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--entrypoints.web.address=:80"
      - "--entrypoints.websecure.address=:443"
      - "--certificatesresolvers.myresolver.acme.httpchallenge=true"
      - "--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web"
      - "--certificatesresolvers.myresolver.acme.email=your_email_address_here"
      - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
  ports:
    - 80:80
    - 443:443
    - 8080:8080
  volumes:
    - "./letsencrypt:/letsencrypt"
    - /var/run/docker.sock:/var/run/docker.sock

https://gist.github.com/xavier-hernandez/48042d5cdb66a89ac5e92a92ecfeb7b5

Leave a Comment

tls: failed to verify certificate: x509: certificate signed by unknown authority

In building a docker image for a Go application using the Apline image, I kept getting this error “tls: failed to verify certificate: x509: certificate signed by unknown authority”. I thought it was something with the code I was writing, but it had to do with the docker image.

Adding this to your Dockerfile should fix the problem. The problem is that the docker container doesn’t have the necessary certs to validate the connection. You might also get around this issue by adding the “ca-certificates” package to the image, but I didn’t try that.

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

or (depends on how your building your image)

COPY /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
Leave a Comment

IIS Crypto and Azure DevOps Agent SSL Issue

Ran across a problem all of a sudden with Azure DevOps agents giving me an SSL connection error. This seemed to be only affecting Windows 2012 R2 servers.

AgentServer] System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.

You’ll have to make sure to enable or re-enable the following ciphers by going into the Cipher Suites in IIS Crypto. This works even if you use the “Best Practices” or “PCI 3.2” template.

Also, enabling the “Server Defaults” template works as well because it re-enables those ciphers.

TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
TLS_DHE_RSA_WITH_AES_256_GCM_SHA384
TLS_DHE_RSA_WITH_AES_128_GCM_SHA256

I found some information about this issue here: Azure DevOps Agent installed on Windows Server 2012 R2 unable to TLS1.2 handshake with Azure Devops Agent Server https://developercommunity.visualstudio.com/t/azure-devops-agent-installed-on-windows-server-201/1651426

IIS Crypto can be found here: https://www.nartac.com/Products/IISCrypto

Leave a Comment

GoAccess for Nginx Proxy Manager Logs

This docker container should work out of the box with Nginx Proxy Manager to parse proxy logs. The goaccess.conf has been configured to only access proxy logs and archived proxy logs. No fuss, no muss.

The docker image scans and includes files matching the following criteria: proxy-host-*_access.log.gz proxy-host-*_access.log

Currently using GoAccess version: 1.5.5

Unraid container is also available.

https://hub.docker.com/r/xavierh/goaccess-for-nginxproxymanager

Leave a Comment

Spanish Wordle / Wordle Espanol

Cloned a Worlde repository and populated it with a Spanish wordlist.

https://wordle-es.xavier.cc/

Docker Image: https://hub.docker.com/r/xavierh/wordle-spanish-espanol

Leave a Comment

Custom Redirect for an HTTP 400 Bad Request in IIS

Had an issue redirecting 400 errors using httpErrors. Seems like you need to pass in existingResponse=”Replace” for it to work.

For more information : https://docs.microsoft.com/en-us/previous-versions/iis/settings-schema/ms690497(v=vs.90)

<httpErrors errorMode="DetailedLocalOnly" existingResponse="Replace">
            <remove statusCode="400" subStatusCode="-1" />
            <remove statusCode="404" subStatusCode="-1" />
            <error statusCode="400" prefixLanguageFilePath="" path="https://somewhere/400.html" responseMode="Redirect" />
            <error statusCode="404" prefixLanguageFilePath="" path="https://somewhere/404.html" responseMode="Redirect" />
</httpErrors>
Leave a Comment

.NET and TLS

  • Before .NET 4.6 – TLS 1.1 is default and negotiations start down
  • .NET 4.6 – TLS 1.2 is default and negotiations start down
  • .NET 4.7 – the default value of this property is SecurityProtocolType.SystemDefault. This allows .NET Framework networking APIs based on SslStream (such as FTP, HTTP, and SMTP) to inherit the default security protocols from the operating system or from any custom configurations performed by a system administrator.
Leave a Comment

Setting up Rocket.Chat with Mongo 4.2 via Docker

I could not find a docker-compose.yml example with rocket.chat using 4.2 so I pieced one together.

Also, some tips on these errors.

Error: $MONGO_OPLOG_URL must be set to the ‘local’ database of a Mongo replica set

MongoError: not master and slaveOk=false

Visit my Github repo for more information: https://github.com/xavier-hernandez/rocket.chat/

Leave a Comment

WordPress Error – The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

WordPress was installed on a windows machine and recently started getting this error. Seems that the web.config was modified.

To fix the error above I updated the web.config to look like this and it fixed the problem.

<configuration>
<system.webServer>
    <rewrite>
      <rules>
        <rule name="Main Rule" stopProcessing="true">
                <match url=".*" />
                <conditions logicalGrouping="MatchAll">
                    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                </conditions>
                <action type="Rewrite" url="/" />
            </rule>
        </rules>
    </rewrite>
</system.webServer>
</configuration>
Leave a Comment