Files
homaroma/serverinfo/admin.homaroma.shop.conf
T
2026-06-03 08:39:12 +07:00

18 lines
571 B
Plaintext

server {
listen 80;
server_name admin.homaroma.shop;
location /.well-known/acme-challenge/ { root /var/www/certbot; }
location / { return 301 https://$host$request_uri; }
}
server {
listen 443 ssl;
server_name admin.homaroma.shop;
ssl_certificate /etc/letsencrypt/live/admin.homaroma.shop/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/admin.homaroma.shop/privkey.pem;
location / {
root /usr/share/nginx/html/homaroma.shop/admin;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
}