Hi,
i have configured a Wetty Docker in combination with swag.
It took some time to figger out, how it will work. And finally i found, it was very easy to do. Maybe this will help someone who is struggling with the same problem
At the end it was the missing env option "- BASE=/" in Docker config of wetty
wetty.subdomain.conf
Code
## Version 2024/07/16
# make sure that your wetty container is named wetty
# make sure that your dns has a cname set for wetty
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name wetty.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app wetty;
set $upstream_port 3000;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header X-Scheme https;
}
}
Display More
wetty.yaml
Code
---
services:
wetty:
image: wettyoss/wetty:latest
container_name: wetty
network_mode: swag # your swag network
environment:
- SSHHOST=192.168.1.2 # Your NAS Ip here
- SSHPORT=22 # Your SSH port Here
- SSHUSER=root # Your User here
- BASE=/ # Base directory, so you dont need to add /wetty on end of URL
ports:
- 3000:3000 # your desired port, must match swag config
restart: unless-stopped
Display More