Add full project files
This commit is contained in:
24
scripts/nginx/panel.modstagram.com.conf
Normal file
24
scripts/nginx/panel.modstagram.com.conf
Normal file
@@ -0,0 +1,24 @@
|
||||
# پنل ادمین — panel.modstagram.com
|
||||
# مسیر: /etc/nginx/sites-available/panel.modstagram.com
|
||||
# قبل از فعالسازی: npm run build در modstagram_panel
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name panel.modstagram.com;
|
||||
|
||||
root /root/modstagram_panel/build;
|
||||
index index.html;
|
||||
|
||||
location /.well-known/acme-challenge/ {
|
||||
root /var/www/certbot;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
||||
expires 30d;
|
||||
add_header Cache-Control "public, immutable";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user