1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

Merge remote changes and resolve conflicts

This commit is contained in:
MoonTestUse1
2024-12-25 03:42:34 +06:00
parent d7b08d09b0
commit 25241add4b
2 changed files with 22 additions and 25 deletions

View File

@@ -1,3 +1,5 @@
version: '3.8'
services:
frontend:
build:
@@ -8,7 +10,6 @@ services:
ports:
- "80:80"
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
depends_on:
- backend
@@ -25,8 +26,6 @@ services:
volumes:
- ./backend:/app
- sqlite_data:/app/instance
ports:
- "8000:8000"
volumes:
sqlite_data:

View File

@@ -1,25 +1,23 @@
user nginx;
worker_processes auto;
server {
listen 80;
listen [::]:80;
server_name itformhelp.ru www.itformhelp.ru;
root /usr/share/nginx/html;
index index.html;
error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;
location / {
try_files $uri $uri/ /index.html;
expires -1;
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
events {
worker_connections 1024;
location /api/ {
proxy_pass http://backend:8000/api/;
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;
}
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf;
}