Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-ivona committed Apr 2, 2024
1 parent f96701a commit 1bfff71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Containers/Nginx.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ protected function publish_nginx_conf(): void
$template = Storage::get(self::PATH_NGINX_CONF);

$this->compile_template($template, [
'ROBOTS' => env('ENABLE_ROBOTS', true)
'robots' => env('ENABLE_ROBOTS', true)
? ''
: 'add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"'
: 'add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";'
]);

$this->disk()->put(self::PATH_NGINX_CONF, $template);
Expand Down
2 changes: 1 addition & 1 deletion storage/app/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ http {
fastcgi_read_timeout 600;
proxy_read_timeout 600;

[ROBOTS]
[robots]
}

0 comments on commit 1bfff71

Please sign in to comment.