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,46 +1,26 @@
|
||||
|
||||
upstream auth_logs_api {
|
||||
server auth_logs_api:3000;
|
||||
}
|
||||
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen 80;
|
||||
|
||||
gzip on;
|
||||
gzip_min_length 1000;
|
||||
gzip_proxied any;
|
||||
gzip_comp_level 1;
|
||||
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml;
|
||||
gzip_vary on;
|
||||
gzip_disable "msie6";
|
||||
gzip on;
|
||||
gzip_min_length 1000;
|
||||
gzip_proxied any;
|
||||
gzip_comp_level 1;
|
||||
gzip_types text/css text/javascript text/xml text/plain text/x-component application/javascript application/json application/xml application/rss+xml font/truetype font/opentype application/vnd.ms-fontobject image/svg+xml;
|
||||
gzip_vary on;
|
||||
gzip_disable "msie6";
|
||||
|
||||
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;
|
||||
}
|
||||
include /etc/nginx/mime.types;
|
||||
|
||||
|
||||
location / {
|
||||
auth_request /auth;
|
||||
auth_request_set $accnumber $upstream_http_acc_number;
|
||||
|
||||
proxy_pass $URL_LOG;
|
||||
proxy_pass $URL_LOG;
|
||||
}
|
||||
|
||||
location = /health {
|
||||
access_log off;
|
||||
add_header 'Content-Type' 'application/json';
|
||||
return 200 'UP';
|
||||
access_log off;
|
||||
add_header 'Content-Type' 'application/json';
|
||||
return 200 'UP';
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user