Шахматка: - Date/period picker dropdown on navigation button (choose start date + days window) - Cancelled bookings fade out with animation after 1 second Бронирования: - Clickable column headers with sort asc/desc (Гость, Заезд, Выезд, Статус, Источник, Сумма) Страница входа: - Removed role-based account selector — just email + password - System auto-detects role/hotel from credentials Настройки: - New "Бронирование" section with room assignment strategy (spread/together/sequential/manual) - Notifications: SMTP email config + SMS provider config (SMSC, SMS.ru, МТС, etc.) Модули: - Added Housekeeping and Channel Manager as proper modules - Channel Manager lists: Booking.com, Airbnb, Яндекс Путешествия, Островок, Суточно.ру, OneTwoTrip - Housekeeping visible to all roles (including housekeeper) via module status - Sidebar now uses module status to show/hide Уборка and Каналы Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
85 lines
2.9 KiB
Plaintext
85 lines
2.9 KiB
Plaintext
# ── Adminer — DB Web UI (port 8080, password protected) ───────────────────
|
|
server {
|
|
listen 8080;
|
|
server_name _;
|
|
|
|
auth_basic "HotelSync Database Admin";
|
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
|
|
|
location / {
|
|
proxy_pass http://adminer:8080;
|
|
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_read_timeout 300;
|
|
}
|
|
}
|
|
|
|
# ── Редирект HTTP → HTTPS ─────────────────────────────────────────────────
|
|
server {
|
|
listen 80;
|
|
server_name hotelsync.ru www.hotelsync.ru app.hotelsync.ru api.hotelsync.ru git.hotelsync.ru;
|
|
|
|
# Certbot challenge
|
|
location /.well-known/acme-challenge/ {
|
|
root /var/www/certbot;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
}
|
|
|
|
# ── app.hotelsync.ru — Панель управления (React SPA) ─────────────────────
|
|
server {
|
|
listen 443 ssl;
|
|
server_name app.hotelsync.ru;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/app.hotelsync.ru/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/app.hotelsync.ru/privkey.pem;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
location / {
|
|
proxy_pass http://frontend:80;
|
|
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;
|
|
}
|
|
}
|
|
|
|
# ── hotelsync.ru — Лендинг (редирект на app пока нет лендинга) ───────────
|
|
server {
|
|
listen 443 ssl;
|
|
server_name hotelsync.ru www.hotelsync.ru;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/hotelsync.ru/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/hotelsync.ru/privkey.pem;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
location / {
|
|
return 302 https://app.hotelsync.ru;
|
|
}
|
|
}
|
|
|
|
# ── api.hotelsync.ru — API Backend ────────────────────────────────────────
|
|
server {
|
|
listen 443 ssl;
|
|
server_name api.hotelsync.ru;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/api.hotelsync.ru/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/api.hotelsync.ru/privkey.pem;
|
|
ssl_protocols TLSv1.2 TLSv1.3;
|
|
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
|
|
location / {
|
|
proxy_pass http://api:3000;
|
|
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;
|
|
}
|
|
}
|