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:25:04 +06:00
parent c48441219d
commit 3037a7c1e6
2 changed files with 25 additions and 23 deletions

View File

@@ -7,9 +7,12 @@ services:
restart: unless-stopped restart: unless-stopped
ports: ports:
- "80:80" - "80:80"
- "443:443"
volumes: volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro - ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./docker/nginx/conf.d:/etc/nginx/conf.d:ro - ./docker/nginx/conf.d:/etc/nginx/conf.d:ro
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- webroot:/var/www/html - webroot:/var/www/html
depends_on: depends_on:
- backend - backend

View File

@@ -1,26 +1,25 @@
server { user nginx;
listen 80; worker_processes auto;
listen [::]:80;
server_name itformhelp.ru www.itformhelp.ru;
root /var/www/html; error_log /var/log/nginx/error.log notice;
index index.html; pid /var/run/nginx.pid;
location ^~ /.well-known/acme-challenge/ { events {
allow all; worker_connections 1024;
default_type "text/plain";
} }
location / { http {
try_files $uri $uri/ /index.html; include /etc/nginx/mime.types;
} default_type application/octet-stream;
location /api/ { log_format main '$remote_addr - $remote_user [$time_local] "$request" '
proxy_pass http://backend:8000/api/; '$status $body_bytes_sent "$http_referer" '
proxy_http_version 1.1; '"$http_user_agent" "$http_x_forwarded_for"';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr; access_log /var/log/nginx/access.log main;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme; sendfile on;
} keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf;
} }