diff --git a/Dekra WebSite/index.html b/Dekra WebSite/index.html index 5005459..61d0d05 100644 --- a/Dekra WebSite/index.html +++ b/Dekra WebSite/index.html @@ -595,7 +595,7 @@ h2.section-title strong { SPONSORS STRIP ============================================================ */ .sponsors-strip { - background: #f7f9f633; + background: rgba(255, 255, 255, 0.7); border-top: 1px solid rgba(100, 179, 44, 0.2); border-bottom: 1px solid rgba(100, 179, 44, 0.2); padding: 40px 80px; @@ -1584,7 +1584,7 @@ footer { showTyping(); try { - const response = await fetch('https://n8n.profice.de/webhook/a0029ebd-a73a-4f6d-bc24-f8ac80d363ee', { + const response = await fetch('https://n8n.support-space.de/webhook/a8754fe3-ecba-4d0c-b58d-6321c50fbe6e', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ message: q }) diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f8191d2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM nginx:alpine + +# Очищаем стандартную папку Nginx, чтобы удалить дефолтный index.html +RUN rm -rf /usr/share/nginx/html/* + +# Копируем содержимое вашей папки +COPY ["Dekra WebSite", "/usr/share/nginx/html"] + +# Копируем конфиг +COPY vhost.conf /etc/nginx/conf.d/default.conf + +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/vhost.conf b/vhost.conf new file mode 100644 index 0000000..5c01f59 --- /dev/null +++ b/vhost.conf @@ -0,0 +1,18 @@ +server { + listen 80; + server_name localhost; + + root /usr/share/nginx/html; + index index.html; + + location / { + # Пытаемся найти файл, потом папку, если нет — отдаем 404 + try_files $uri $uri/ $uri.html =404; + } + + # Настройка кэширования для картинок и видео + location ~* \.(jpg|jpeg|png|gif|ico|css|js|mp4|webm)$ { + expires 30d; + add_header Cache-Control "public, no-transform"; + } +} \ No newline at end of file