Docker 如何启用SSL klokantech tileserver

Docker 如何启用SSL klokantech tileserver,docker,ssl,openmaptiles,Docker,Ssl,Openmaptiles,我在我的项目中使用这个tileserver-我和Docker一起使用它 如何在webserver ubuntu server 18.04中启用HTTPS协议?您好,我已在启用vhost的情况下通过服务器中的certbot启用了HTTPS map.conf http <VirtualHost *:80> ServerName map.xxx.com ServerAlias map.xxx.com ServerAdmin webmaster@localhost ProxyPass /

我在我的项目中使用这个tileserver-我和Docker一起使用它


如何在webserver ubuntu server 18.04中启用HTTPS协议?

您好,我已在启用vhost的情况下通过服务器中的certbot启用了HTTPS

map.conf http

<VirtualHost *:80>
ServerName map.xxx.com
ServerAlias map.xxx.com
ServerAdmin webmaster@localhost


ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
ProxyPreserveHost On
ProxyRequests Off


RewriteEngine on
RewriteCond %{SERVER_NAME} =map.xxx.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
在https上,certbot生成vhost conf

RequestHeader set X-Forwarded-Host "map.xxx.com"
RequestHeader set X-Forwarded-Proto "https"