diff --git a/.config/shareport.remote.sh b/.config/shareport.remote.sh index b7ac35d..380278d 100644 --- a/.config/shareport.remote.sh +++ b/.config/shareport.remote.sh @@ -1,5 +1,5 @@ function gen_prefix() { - cat /dev/urandom | tr -dc 'a-z0-9' | head -c 8 || true + tr -dc 'a-z0-9' ${config_file} server { listen 443 ssl http2; server_name ${share_id}.knut.dev; - + ssl_certificate /data/ssl/nginxle/knut.dev.pem; ssl_certificate_key /data/ssl/nginxle/knut.dev.key; - + location / { proxy_pass http://${LISTEN}; proxy_set_header Upgrade \$http_upgrade;