Skip to content

Commit

Permalink
GROUP-98 Add robots.txt (#22)
Browse files Browse the repository at this point in the history
* GROUP-98 Adds robots.txt and index.html meta description

* GROUP-98 Fixed misplacement of robots.txt asset declaration
  • Loading branch information
makmn1 committed Mar 19, 2024
1 parent 12f0393 commit c4ca157
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
7 changes: 6 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@
"main": "src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "tsconfig.app.json",
"assets": ["src/favicon.ico", "src/assets", "src/config"],
"assets": [
"src/favicon.ico",
"src/assets",
"src/config",
"src/robots.txt"
],
"styles": ["src/custom-theme.scss", "src/styles.css"],
"scripts": []
},
Expand Down
4 changes: 4 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,9 @@ http {
location / {
try_files $uri $uri/ /index.html;
}

location = /robots.txt {
alias grouphq-ui/robots.txt;
}
}
}
4 changes: 4 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<meta charset="utf-8" />
<meta name="robots" content="noindex" />
<title>GroupHQ</title>
<meta
name="description"
content="View and join AI-generated groups based on popular shows, movies and video games!"
/>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
Expand Down
2 changes: 2 additions & 0 deletions src/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow:

0 comments on commit c4ca157

Please sign in to comment.