diff --git a/README.md b/README.md index 186c5a3..3477e0c 100644 --- a/README.md +++ b/README.md @@ -90,10 +90,10 @@ To customize the portfolio: ```text /var/www/html/ # Web root directory ├── index.html # Portfolio website -~/cert/ # SSL certificates directory -├── x.crt # SSL certificate -├── x.key # Private key -└── cert-renew.sh # Certificate renewal script +/etc/xray/cert/ # SSL certificates directory +├── x.crt # SSL certificate +├── x.key # Private key +└── cert-renew.sh # Certificate renewal script ``` ## 🔒 Security Features diff --git a/setup.sh b/setup.sh index cc4b3f0..a40aa1e 100644 --- a/setup.sh +++ b/setup.sh @@ -273,26 +273,26 @@ curl https://get.acme.sh | sh sudo bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ install # Setup certificates -mkdir ~/cert -~/.acme.sh/acme.sh --install-cert -d "$DOMAIN" --ecc --fullchain-file ~/cert/x.crt --key-file ~/cert/x.key -chmod +r ~/cert/x.key +sudo mkdir -p /etc/xray/cert +~/.acme.sh/acme.sh --install-cert -d "$DOMAIN" --ecc --fullchain-file /etc/xray/cert/x.crt --key-file /etc/xray/cert/x.key +chmod +r /etc/xray/cert/x.key # Create certificate renewal script -cat >~/cert/cert-renew.sh </etc/xray/cert/cert-renew.sh <temp_cron -echo "0 1 1 * * bash /home/$USERNAME/cert/cert-renew.sh" >>temp_cron +echo "0 1 1 * * bash /etc/xray/cert/cert-renew.sh" >>temp_cron crontab temp_cron rm temp_cron @@ -340,8 +340,8 @@ sudo tee /usr/local/etc/xray/config.json >/dev/null <