move systemd prefixes to software prefixes

This commit is contained in:
2025-11-18 10:01:07 -05:00
parent 91f4687c07
commit 1ae62e70ed
30 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}

View File

@@ -0,0 +1,27 @@
server {
listen [::]:80;
server_name reesimulate.reeseapps.com;
# Redirect HTTP to HTTPS
return 301 https://$host$request_uri;
}
server {
listen [::]:443 ssl;
server_name reesimulate.reeseapps.com;
ssl_certificate /etc/letsencrypt/live/yourdomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/yourdomain.com/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
location / {
auth_basic "Restricted Area";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_pass http://localhost:7860;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

View File

@@ -0,0 +1,98 @@
# Stable Diffusion
## Web UI
<https://github.com/lllyasviel/stable-diffusion-webui-forge>
### Arch Linux
```bash
sudo pacman -S python-pytorch-rocm
git clone https://aur.archlinux.org/python-torchvision-rocm.git
cd python-torchvision-rocm
makepkg -si
git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git
cd stable-diffusion-webui
python3.10 -m venv venv --system-site-packages
source venv/bin/activate
pip install -r requirements.txt
# We need to replace the torch/pytorch versions with amd compatible ones.
# Check https://download.pytorch.org/whl/nightly/torch/ for versions
# Specifically you want the "rocm" versions for AMD
# Just copy the "torch-2.6.0.dev20241205+rocm6.2.4" part
pip install torch==2.8.0.dev20250520+rocm6.4 --index-url https://download.pytorch.org/whl/nightly
pip install torchvision==0.22.0.dev20250520+rocm6.4--index-url https://download.pytorch.org/whl/nightly
./webui.sh
```
### Fedora
```bash
toolbox create
toolbox enter
```
```bash
sudo dnf install -y \
libgle-devel
uv venv venv --seed
source venv/bin/activate
# We need to replace the torch/pytorch versions with amd compatible ones.
# Check https://download.pytorch.org/whl/nightly/torch/ for torch
# Check https://download.pytorch.org/whl/torchvision/ for torchvision
# Specifically you want the "rocm" versions for AMD
# Just copy the "torch-2.6.0.dev20241205+rocm6.2.4" part
pip install torch==2.10.0.dev20251006+rocm6.4 --index-url https://download.pytorch.org/whl/nightly
pip install torchvision==0.25.0.dev20251005+rocm6.4 --index-url https://download.pytorch.org/whl/nightly
./webui.sh
```
## Models
<https://stable-diffusion-art.com/models/#How_to_install_and_use_a_model>
### SDXC
- Use 1024x1024
- First generation is really really slow, subsequent generations are fast
<https://stable-diffusion-art.com/sdxl-model/#Download_and_install_SDXL_10_models>
### SD3.5
<https://www.stablediffusiontutorials.com/2024/10/stable-diffusion-3-5.html>
### Flux AI
- You must use Stable Diffusion WebUI Forge
- In the UI, click "flux"
- First generation is really really really really slow
<https://stable-diffusion-art.com/flux-forge/>
This is working as of 5/12/25:
<https://civitai.com/articles/9060/how-to-set-up-and-run-flux-on-forge-even-if-you-have-low-vram>
#### Low VRAM
<https://huggingface.co/lllyasviel/flux1-dev-bnb-nf4/blob/main/flux1-dev-bnb-nf4-v2.safetensors>
Generate 512x512 images.
## Nginx
```bash
htpasswd -c /etc/nginx/.htpasswd yourusername
sudo useradd -m -s /bin/bash nginx
sudo certbot --nginx -d reesimulate.reeseapps.com
```