remove auth
This commit is contained in:
parent
c9fd8c453b
commit
cc6b2d4d8a
2
.env
2
.env
@ -1,7 +1,5 @@
|
||||
TRAEFIK_APP_NAME=evo_logger
|
||||
TRAEFIK_NETWORK_NAME=
|
||||
|
||||
AUTH_TOKEN_SECRET=
|
||||
|
||||
URL_LOG=
|
||||
WEB_HOST=
|
||||
@ -1,14 +1,6 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
auth_logs_api:
|
||||
environment:
|
||||
- TOKEN_SECRET=${AUTH_TOKEN_SECRET}
|
||||
build: ./Evo.LogsAPI.Auth
|
||||
networks:
|
||||
- evo_logsapi_network
|
||||
restart: always
|
||||
|
||||
server:
|
||||
extends:
|
||||
file: docker.traefik.yml
|
||||
|
||||
@ -1,8 +1,4 @@
|
||||
|
||||
upstream auth_logs_api {
|
||||
server auth_logs_api:3000;
|
||||
}
|
||||
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
@ -17,24 +13,8 @@ server {
|
||||
|
||||
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 / {
|
||||
auth_request /auth;
|
||||
auth_request_set $accnumber $upstream_http_acc_number;
|
||||
|
||||
proxy_pass $URL_LOG;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user