chatreesept deployed
This commit is contained in:
@@ -51,4 +51,14 @@ pip install -r requirements.txt
|
||||
- In the UI, click "flux"
|
||||
- First generation is really really really really slow
|
||||
|
||||
<https://stable-diffusion-art.com/flux-forge/>
|
||||
<https://stable-diffusion-art.com/flux-forge/>
|
||||
|
||||
## Nginx
|
||||
|
||||
```bash
|
||||
htpasswd -c /etc/nginx/.htpasswd yourusername
|
||||
|
||||
sudo useradd -m -s /bin/bash nginx
|
||||
|
||||
sudo certbot --nginx -d reesimulate.reeseapps.com
|
||||
```
|
||||
26
systemd/incubating/stablediffusion/nginx.conf
Normal file
26
systemd/incubating/stablediffusion/nginx.conf
Normal 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/*;
|
||||
}
|
||||
27
systemd/incubating/stablediffusion/reesimulate.reeseapps.com
Normal file
27
systemd/incubating/stablediffusion/reesimulate.reeseapps.com
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user