Image ubuntu install: nginx, dotnet-sdk-8.0 (run app bot auto deploy)
ENV HTTP_PORT=80
ENV HTTPS_PORT=443
Folder host website files ".conf": /home/conf.d
Folder log: /var/log/nginx
Template file .conf:
server {
listen 80;
listen [::]:80;
server_name _;
root /home/web/default;
index index.html;
location / {
try_files $uri $uri/ /index.html?/$request_uri;
}
error_log /var/log/nginx/default_error.log;
access_log /var/log/nginx/default_access.log;
}
server {
listen 443 ssl;
ssl_certificate /home/ssl/cert.pem;
ssl_certificate_key /home/ssl/private.key;
server_name mydomain.com mydomain2.com;
root /home/web/default;
index index.html;
location / {
try_files $uri $uri/ /index.html?/$request_uri;
}
error_log /var/log/nginx/default_error.log;
access_log /var/log/nginx/default_access.log;
}
Content type
Image
Digest
sha256:39c8a11ab…
Size
289.1 MB
Last updated
almost 2 years ago
docker pull stvg/web-deploy:v2.5