initial: server + shared

This commit is contained in:
admin
2026-06-11 13:41:38 +05:00
commit 65da047e7c
148 changed files with 15900 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
# Nginx для доступа к админке через Netbird
# Размещается на сервере в /etc/nginx/sites-available/craftshop-netbird
# с симлинком в /etc/nginx/sites-enabled/
server {
listen 100.109.3.6:80;
server_name 100.109.3.6;
root /opt/craftshop/www;
index index.html;
client_max_body_size 100M;
location /api/ {
proxy_pass http://127.0.0.1:3333;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /uploads/ {
proxy_pass http://127.0.0.1:3333;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location / {
try_files $uri $uri/ /index.html;
}
}