Skip to content

Commit

Permalink
no robots
Browse files Browse the repository at this point in the history
  • Loading branch information
broneks committed Nov 27, 2024
1 parent 4bf081d commit 114651a
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 3 deletions.
3 changes: 1 addition & 2 deletions api/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ func newServer(ctx context.Context) *types.Server {

func Start() {
env := os.Getenv("ENV")
appUrl := os.Getenv("APP_BASE_URL")

e := echo.New()

Expand Down Expand Up @@ -86,5 +85,5 @@ func Start() {
}

e.HideBanner = true
e.Logger.Fatal(e.Start(appUrl))
e.Logger.Fatal(e.Start("0.0.0.0:8000"))
}
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
args:
ENV: ${ENV}
ports:
- 8001:8001
- 8000:8001
restart: on-failure
volumes:
- .:/app
Expand Down
2 changes: 2 additions & 0 deletions static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
1 change: 1 addition & 0 deletions templates/400.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>400 - Bad Request</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions templates/401.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>401 - Not Allowed</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions templates/403.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>403 - Forbidden</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>404 - Not Found</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions templates/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>500 - Unexpected Error</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions templates/503.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>503 - Service Unavailable</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions templates/partials_head.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="robots" content="noindex, nofollow">
<title>{{.PageInfo.Title}}</title>
<script src="https://cdn.tailwindcss.com"></script>
<script nonce="{{ .PageInfo.Nonce }}">
Expand Down

0 comments on commit 114651a

Please sign in to comment.