mirror of
https://github.com/kodxana/madiator-docker-runpod.git
synced 2024-12-04 23:40:13 +01:00
175 lines
4.4 KiB
Nginx Configuration File
175 lines
4.4 KiB
Nginx Configuration File
events { worker_connections 2048; }
|
|
|
|
http {
|
|
client_max_body_size 1024M;
|
|
|
|
|
|
# invokeai
|
|
server {
|
|
listen 9091;
|
|
|
|
location / {
|
|
add_header Cache-Control no-cache;
|
|
proxy_pass http://localhost:9090;
|
|
proxy_intercept_errors on;
|
|
error_page 502 =200 @502;
|
|
}
|
|
|
|
location /README.md{
|
|
root /usr/share/nginx/html;
|
|
}
|
|
|
|
location @502 {
|
|
add_header Cache-Control no-cache;
|
|
root /usr/share/nginx/html;
|
|
rewrite ^(.*)$ /readme.html break;
|
|
}
|
|
}
|
|
|
|
# Fast Stable Diffusion + web UI + Comfy UI
|
|
server {
|
|
listen 3001;
|
|
|
|
location /ws {
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Accept-Encoding gzip;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
add_header Cache-Control no-cache;
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_pass http://localhost:3000;
|
|
}
|
|
|
|
location /queue/join {
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Accept-Encoding gzip;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
add_header Cache-Control no-cache;
|
|
proxy_set_header Host $host;
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_pass http://localhost:3000;
|
|
}
|
|
|
|
location / {
|
|
add_header Cache-Control no-cache;
|
|
proxy_pass http://localhost:3000;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Accept-Encoding gzip;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
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;
|
|
|
|
|
|
proxy_intercept_errors on;
|
|
error_page 502 =200 @502;
|
|
}
|
|
|
|
location /README.md{
|
|
root /usr/share/nginx/html;
|
|
}
|
|
|
|
location @502 {
|
|
add_header Cache-Control no-cache;
|
|
root /usr/share/nginx/html;
|
|
rewrite ^(.*)$ /readme.html break;
|
|
}
|
|
}
|
|
|
|
# Oobabooga
|
|
server {
|
|
listen 7861;
|
|
|
|
location / {
|
|
add_header Cache-Control no-cache;
|
|
proxy_pass http://localhost:7860;
|
|
proxy_intercept_errors on;
|
|
error_page 502 =200 @502;
|
|
}
|
|
|
|
location /README.md{
|
|
root /usr/share/nginx/html;
|
|
}
|
|
|
|
location @502 {
|
|
add_header Cache-Control no-cache;
|
|
root /usr/share/nginx/html;
|
|
rewrite ^(.*)$ /readme.html break;
|
|
}
|
|
}
|
|
|
|
# code-server
|
|
server {
|
|
listen 8081;
|
|
|
|
location / {
|
|
add_header Cache-Control no-cache;
|
|
proxy_pass http://localhost:8080;
|
|
proxy_intercept_errors on;
|
|
error_page 502 =200 @502;
|
|
}
|
|
|
|
location /README.md{
|
|
root /usr/share/nginx/html;
|
|
}
|
|
|
|
location @502 {
|
|
add_header Cache-Control no-cache;
|
|
root /usr/share/nginx/html;
|
|
rewrite ^(.*)$ /readme.html break;
|
|
}
|
|
}
|
|
|
|
# vscode server
|
|
server {
|
|
listen 8001;
|
|
|
|
location / {
|
|
add_header Cache-Control no-cache;
|
|
proxy_pass http://localhost:8000;
|
|
proxy_intercept_errors on;
|
|
error_page 502 =200 @502;
|
|
}
|
|
|
|
location /README.md{
|
|
root /usr/share/nginx/html;
|
|
}
|
|
|
|
location @502 {
|
|
add_header Cache-Control no-cache;
|
|
root /usr/share/nginx/html;
|
|
rewrite ^(.*)$ /readme.html break;
|
|
}
|
|
}
|
|
|
|
# Dockerless CLI FastAPI Server
|
|
server {
|
|
listen 7270; # "rp" in Hex ASCII
|
|
|
|
location / {
|
|
add_header Cache-Control no-cache;
|
|
proxy_pass http://localhost:7271;
|
|
proxy_intercept_errors on;
|
|
error_page 502 =200 @502;
|
|
}
|
|
|
|
location /README.md{
|
|
root /usr/share/nginx/html;
|
|
}
|
|
|
|
location @502 {
|
|
add_header Cache-Control no-cache;
|
|
root /usr/share/nginx/html;
|
|
rewrite ^(.*)$ /readme.html break;
|
|
}
|
|
}
|
|
|
|
}
|