Skip to content

Commit c7e22ec

Browse files
Fix my scuffed ass formatting
1 parent ee67448 commit c7e22ec

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@ server {
167167
}
168168
location / {
169169
access_by_lua_block {
170-
local res = ngx.location.capture("/domainCheck/?domain=" .. ngx.escape_uri(ngx.var.host))
171-
if res.status ~= 200 then
172-
ngx.log(ngx.WARN, "Domain not allowed: ", ngx.var.host)
173-
return ngx.exit(ngx.HTTP_FORBIDDEN)
174-
end
170+
local res = ngx.location.capture("/domainCheck/?domain=" .. ngx.escape_uri(ngx.var.host))
171+
if res.status ~= 200 then
172+
ngx.log(ngx.WARN, "Domain not allowed: ", ngx.var.host)
173+
return ngx.exit(ngx.HTTP_FORBIDDEN)
174+
end
175175
}
176176
proxy_set_header Upgrade $http_upgrade;
177177
proxy_set_header Connection 'Upgrade';
@@ -185,15 +185,15 @@ server {
185185
proxy_pass http://localhost:9292; # Adjust the URL if needed
186186
}
187187
location /.well-known {
188-
access_by_lua_block {
189-
local res = ngx.location.capture("/domainCheck/?domain=" .. ngx.escape_uri(ngx.var.host))
190-
if res.status ~= 200 then
191-
ngx.log(ngx.WARN, "Domain not allowed: ", ngx.var.host)
192-
return ngx.exit(ngx.HTTP_FORBIDDEN)
193-
end
188+
access_by_lua_block {
189+
local res = ngx.location.capture("/domainCheck/?domain=" .. ngx.escape_uri(ngx.var.host))
190+
if res.status ~= 200 then
191+
ngx.log(ngx.WARN, "Domain not allowed: ", ngx.var.host)
192+
return ngx.exit(ngx.HTTP_FORBIDDEN)
193+
end
194194
}
195-
content_by_lua_block {
196-
require("resty.acme.autossl").serve_http_challenge()
195+
content_by_lua_block {
196+
require("resty.acme.autossl").serve_http_challenge()
197197
}
198198
}
199199
location /domainCheck {

0 commit comments

Comments
 (0)