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 04:35:25 +06:00
parent 40f0dda8f0
commit 2f2ca35c1f
2 changed files with 26 additions and 24 deletions

View File

@@ -1,3 +1,5 @@
version: '3.8'
services: services:
frontend: frontend:
build: build:
@@ -9,8 +11,7 @@ services:
- "80:80" - "80:80"
- "443:443" - "443:443"
volumes: volumes:
- certbot-etc:/etc/letsencrypt - certbot-etc:/etc/letsencrypt:ro
- certbot-var:/var/lib/letsencrypt
- webroot:/var/www/html - webroot:/var/www/html
depends_on: depends_on:
- backend - backend
@@ -39,7 +40,7 @@ services:
- webroot:/var/www/html - webroot:/var/www/html
depends_on: depends_on:
- frontend - frontend
command: certonly --webroot --webroot-path=/var/www/html --email admin@itformhelp.ru --agree-tos --no-eff-email --force-renewal -d itformhelp.ru -d www.itformhelp.ru command: certonly --webroot --webroot-path=/var/www/html --email admin@itformhelp.ru --agree-tos --no-eff-email --force-renewal --staging -d itformhelp.ru -d www.itformhelp.ru
volumes: volumes:
sqlite_data: sqlite_data:

View File

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