Hi
Currently i have working with NGINX reverse proxy for a few subdomains and wanted to move to SWAG,
Currently testing it out but im a bit confused, from what i read on the wiki was to remove the .sample and leave .conf but didnt find where to put the servername in my case it would be admin.domain.com
This is what i got so far
went to /swag/nginx/site-conf/default
and edit a example block to this
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
#
# root /config/www;
# index index.html index.htm index.php;
#
server_name admin.*;
#
include /config/nginx/ssl.conf;
#
# include /config/nginx/authelia-server.conf;
#
client_max_body_size 0;
location / {
# # the next line will enable Authelia along with the included authelia-server.conf in the server block
# include /config/nginx/authelia-location.conf;
# include /config/nginx/proxy.conf;
# resolver 127.0.0.11 valid=30s;
set $upstream_app 192.168.7.206;
set $upstream_port 8024;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}
im trying to reverse proxy a wordpress which has an ip of 192.168.7.206 and port 8024
Thank you