server { listen 8080; location / { if ($http_x_api_key != '${API_TOKEN}') { return 401; } return 200; } }