upstream dockerTextureProvider {
    server 127.0.0.1:29300;
}
server {
    server_name tl.smpworld.ru;
    charset utf-8;        

    location / {
        proxy_pass http://dockerTextureProvider/;
    }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/tl.smpworld.ru/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/tl.smpworld.ru/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}

server {
    if ($host = tl.smpworld.ru) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


    listen 80;
    server_name tl.smpworld.ru;
    return 404; # managed by Certbot


}
