Добрый день запускаю через docker
вот таким образом docker run --name nginx1 -p 8080:80 -v /some/content:/usr/share/nginx/html:ro -d nginx и по http все работает,
Но когда я запускаю docker run --name nginx1 -p 8081:443 -v /some/content:/usr/share/nginx/html:ro -d nginx
Выдает ошибку
файл своего конфига прикреплю ниже
# ------------------------------------------------------------
# exaple.site
# ------------------------------------------------------------
server {
set $forward_scheme https;
set $server "242.123.322.150";
set $port 8080;
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name exaple.site;
# Let's Encrypt SSL
include conf.d/include/letsencrypt-acme-challenge.conf;
include conf.d/include/ssl-ciphers.conf;
ssl_certificate /etc/letsencrypt/live/npm-1/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/npm-1/privkey.pem;
access_log /data/logs/proxy-host-1_access.log proxy;
error_log /data/logs/proxy-host-1_error.log warn;
location / {
# Proxy!
include conf.d/include/proxy.conf;
}
# Custom
include /data/nginx/custom/server_proxy[.]conf;
}