NGINX
If you notice any mistakes that need to be corrected, please reach out on Discord!
NGINX Subdomain example
server {
listen 443 ssl;
listen [::]:443 ssl;
# Make sure you create a CNAME with your domain registrar
server_name petio.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
# Delete the line below if you aren't using LSIO's SWAG container
# or if you don't have a file called "proxy.conf"
include /config/nginx/proxy.conf;
# Delete the line below if you aren't using Docker DNS
resolver 127.0.0.11 valid=30s;
# Change the word petio below to the IP
# of where Petio is installed if you aren't using Docker DNS
set $upstream_app petio;
# You can leave the next 3 lines as is,
# unless you are using a different port
# or you are somehow using HTTPS internally
set $upstream_port 7777;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
# This is optional and only if you want to protect your `/admin` endpoint
# with some sort of auth in front of it.
# No auth example is being provided
location /admin/ {
# Delete the line below if you aren't using LSIO's SWAG container
# or if you don't have a file called "proxy.conf"
include /config/nginx/proxy.conf;
# Delete the line below if you aren't using Docker DNS
resolver 127.0.0.11 valid=30s;
# Change the line below to the IP
# of where Petio is installed if you aren't using Docker DNS
set $upstream_app petio;
# You can leave the next 3 lines as is,
# unless you are using a different port
# or you are somehow using HTTPS internally
set $upstream_port 7777;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}NGINX Subdirectory Example
NGINX Proxy Manager
Details Tab

SSL Tab

Last updated