Skip to content

Commit

Permalink
emp
Browse files Browse the repository at this point in the history
  • Loading branch information
best-tech committed Dec 10, 2020
1 parent 7eba173 commit f26dc69
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions config/nginx.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ http {
keepalive_timeout 5;

location <%= ENV['URL_PATH'] %> {

set $au "0";
if ("<%= ENV['AUTH_MAIN']%>" != "") {
set $au "1";

set $emp "";
set $au "1";
if ("<%= ENV['AUTH_MAIN']%>" = $emp) {
set $au "0enr";
}
if ($http_authorization != "<%= ENV['AUTH_MAIN']%>") {
set $au "${au}1";
Expand Down

0 comments on commit f26dc69

Please sign in to comment.