remove auth

This commit is contained in:
vchikalkin 2023-09-11 11:50:57 +03:00
parent c9fd8c453b
commit cc6b2d4d8a
3 changed files with 13 additions and 43 deletions

2
.env
View File

@ -1,7 +1,5 @@
TRAEFIK_APP_NAME=evo_logger TRAEFIK_APP_NAME=evo_logger
TRAEFIK_NETWORK_NAME= TRAEFIK_NETWORK_NAME=
AUTH_TOKEN_SECRET=
URL_LOG= URL_LOG=
WEB_HOST= WEB_HOST=

View File

@ -1,14 +1,6 @@
version: '3' version: '3'
services: services:
auth_logs_api:
environment:
- TOKEN_SECRET=${AUTH_TOKEN_SECRET}
build: ./Evo.LogsAPI.Auth
networks:
- evo_logsapi_network
restart: always
server: server:
extends: extends:
file: docker.traefik.yml file: docker.traefik.yml

View File

@ -1,8 +1,4 @@
upstream auth_logs_api {
server auth_logs_api:3000;
}
server { server {
listen 80; listen 80;
@ -17,24 +13,8 @@ server {
include /etc/nginx/mime.types; include /etc/nginx/mime.types;
location = /auth {
internal;
proxy_pass_request_body off;
proxy_set_header Content-Length "";
proxy_set_header X-Original-URI $request_uri;
proxy_set_header X-Original-Remote-Addr $remote_addr;
proxy_set_header X-Original-Host $host;
proxy_pass http://auth_logs_api/auth/check-token;
}
location / { location / {
auth_request /auth;
auth_request_set $accnumber $upstream_http_acc_number;
proxy_pass $URL_LOG; proxy_pass $URL_LOG;
} }