server { listen 80; listen 443 ssl; server_name .dybiec.info; ssl_certificate /etc/letsencrypt/live/dybiec.info/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/dybiec.info/privkey.pem; location / { root /usr/share/nginx/html; index index.html; } } server { listen 80; listen 443 ssl; server_name cnt.dybiec.info; ssl_certificate /etc/letsencrypt/live/dybiec.info/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/dybiec.info/privkey.pem; location / { proxy_pass http://localhost:5004; } } server { listen 80; listen 443 ssl; server_name registry.dybiec.info; ssl_certificate /etc/letsencrypt/live/dybiec.info/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/dybiec.info/privkey.pem; location / { proxy_pass http://localhost:5000; proxy_set_header Host $http_host; # required for docker client's sake proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; client_max_body_size 0; } } server { listen 80; server_name git.dybiec.info; return 301 https://$server_name$request_uri; } server { listen 443 ssl; server_name git.dybiec.info; ssl_certificate /etc/letsencrypt/live/dybiec.info/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/dybiec.info/privkey.pem; location / { proxy_pass http://localhost:5001; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; proxy_http_version 1.1; } gzip_proxied any; gzip_types text/css text/javascript text/xml text/plain application/javascript application/x-javascript application/json; } server { listen 80; server_name grafana.dybiec.info; return 301 https://$server_name$request_uri; } server { listen 443 ssl; server_name grafana.dybiec.info; ssl_certificate /etc/letsencrypt/live/dybiec.info/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/dybiec.info/privkey.pem; location / { proxy_pass http://localhost:5002; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; proxy_http_version 1.1; } gzip_proxied any; gzip_types text/css text/javascript text/xml text/plain application/javascript application/x-javascript application/json; } server { listen 80; server_name prometheus.dybiec.info; return 301 https://$server_name$request_uri; } server { listen 443 ssl; server_name prometheus.dybiec.info; ssl_certificate /etc/letsencrypt/live/dybiec.info/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/dybiec.info/privkey.pem; location / { proxy_pass http://localhost:5003; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; proxy_http_version 1.1; } gzip_proxied any; gzip_types text/css text/javascript text/xml text/plain application/javascript application/x-javascript application/json; } server { listen 80; server_name octoprint.dybiec.info; return 301 https://$server_name$request_uri; } server { listen 443 ssl; server_name octoprint.dybiec.info; ssl_certificate /etc/letsencrypt/live/dybiec.info/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/dybiec.info/privkey.pem; location / { proxy_pass http://192.168.255.6/; proxy_redirect off; proxy_http_version 1.1; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; client_max_body_size 0; } gzip_proxied any; gzip_types text/css text/javascript text/xml text/plain application/javascript application/x-javascript application/json; }