Hey !
I have lxc conteneur with yunohost. I use a reverse proxy to access it.
Without any apparent reason when I try to access my yunohost conteneur in a browser I get a 502 bad gateway error. I can acces my others containers without this issue.
Here is a sample of the errors I get from the reverse proxy :
2019/08/26 11:33:29 [error] 176#176: *249 connect() failed (111: Connection refused while connecting to upstream, client: ***** server: gafamfree.party, request: "GET / HTTP/1.1", upstream: "https://192.168.1.13:443/", host: "gafamfree.party"
Here is my conf file from the nginx reverse proxy :
server {
listen 443 ssl;
server_name gafamfree.party;
location /{
proxy_pass https://192.168.1.13/;
proxy_redirect off;
proxy_set_header Host $http_host:443;
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_set_header X-Url-Scheme $scheme;
}
ssl_certificate /certificates/gafamfree/crt.pem;
ssl_certificate_key /certificates/gafamfree/key.pem;
ssl_session_timeout 5m; ssl_session_cache shared:SSL:50m; ssl_prefer_server_ciphers on; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ALL:!aNULL:!eNULL:!LOW:!EXP:!RC4:!3DES:+HIGH:+MEDIUM; add_header Strict-Transport-Security "max-age=31536000;";
}
server {
listen 80;
server_name gafamfree.party;
location /{
rewrite ^/(.*)$ https://gafamfree.party/$1 permanent;
} }
I think yunohost refuse local connection because when I try to ssh in local i get a connection refused error wich don t appear when I ssh trhougt the www.
I get no messages errors in the yunohost logs, and no connection attemps in /var/log/nginx/access.log
Thx for your help !
Ps : The yunohost firewall stop running sometime but i don t know why. I get no error when I launch it manually with yunohost service start yunohost-firewall