Skip to content

Commit 97df3eb

Browse files
Merge pull request #137 from nullinside-development-group/feat/google
feat: improve google search presence
2 parents bdcc919 + 3d5006a commit 97df3eb

File tree

9 files changed

+44
-2
lines changed

9 files changed

+44
-2
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ services:
77
- BUILD_ENVIRONMENT=prod
88
tags:
99
- "nullinside-ui:latest"
10+
volumes:
11+
- /var/log/nginx/:/var/log/nginx/:rw
1012
logging:
1113
driver: loki
1214
options:

nginx/filesystem/etc/nginx/conf.d/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ server {
5555
}
5656

5757
# Angular pages
58-
location ~ ^/(background|user|vm-admin|twitch/|imdb-search|chunk|polyfills|main|styles|assets|favicon) {
58+
location ~ ^/(background|user|vm-admin|twitch/|imdb-search|chunk|polyfills|main|styles|assets|favicon|robots.txt|sitemap.xml) {
5959
root /usr/share/nginx/html;
6060
try_files $uri $uri/ /index.html =404;
6161
}

nginx/filesystem/etc/nginx/nginx.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ user nginx;
22
worker_processes 1;
33

44
error_log /var/log/nginx/error.log warn;
5+
error_log /dev/stderr warn; # Required to pull logs into loki
56
pid /var/run/nginx.pid;
67

78

@@ -19,6 +20,7 @@ http {
1920
'"$http_user_agent" "$http_x_forwarded_for"';
2021

2122
access_log /var/log/nginx/access.log main;
23+
access_log /dev/stdout main; # Required to pull logs into loki
2224

2325
sendfile on;
2426
#tcp_nopush on;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
User-agent: *
2+
Allow: /
3+
Disallow: /null/*
4+
Disallow: /twitch-bot/*
5+
Disallow: /imdb-search/*
6+
7+
Sitemap: https://nullinside.com/sitemap.xml
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
2+
<url>
3+
<loc>https://nullinside.com</loc>
4+
</url>
5+
<url>
6+
<loc>https://nullinside.com/twitch/bot</loc>
7+
</url>
8+
<url>
9+
<loc>https://nullinside.com/user/auth</loc>
10+
</url>
11+
</urlset>

src/package-lock.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/src/app/view/login/login.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {LoadingIconComponent} from "../../common/components/loading-icon/loading
77
import {HttpErrorResponse} from '@angular/common/http';
88
import {TwitchLoginComponent} from '../../common/components/twitch-login/twitch-login.component';
99
import {AuthService} from "../../service/auth.service";
10+
import {Meta, Title} from "@angular/platform-browser";
1011

1112
@Component({
1213
selector: 'app-login',
@@ -23,6 +24,8 @@ export class LoginComponent implements OnInit {
2324
private api = inject(NullinsideService);
2425
private router = inject(Router);
2526
private route = inject(ActivatedRoute);
27+
private metaService: Meta = inject(Meta);
28+
private titleService: Title = inject(Title);
2629

2730
loginUrl: string;
2831
checkingLogin = false;
@@ -33,6 +36,8 @@ export class LoginComponent implements OnInit {
3336

3437
constructor() {
3538
this.loginUrl = `${environment.apiUrl}/user/login`;
39+
this.metaService.updateTag({name: 'description', content: 'Login for access'});
40+
this.titleService.setTitle("Login");
3641
}
3742

3843
ngOnInit(): void {

src/src/app/view/twitch/twitch-bot-index/twitch-bot-index.component.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import {Component} from '@angular/core';
1+
import {Component, inject} from '@angular/core';
22
import {StandardBannerComponent} from '../../../common/components/standard-banner/standard-banner.component';
33
import {TwitchLoginComponent} from '../../../common/components/twitch-login/twitch-login.component';
44
import {TwitchBotFaqComponent} from "../twitch-bot-faq/twitch-bot-faq.component";
55
import {environment} from "../../../../environments/environment";
6+
import {Meta, Title} from '@angular/platform-browser';
67

78
@Component({
89
selector: 'app-twitch-bot-index',
@@ -16,4 +17,14 @@ import {environment} from "../../../../environments/environment";
1617
})
1718
export class TwitchBotIndexComponent {
1819
protected readonly environment = environment;
20+
private metaService: Meta = inject(Meta);
21+
private titleService: Title = inject(Title);
22+
23+
constructor() {
24+
this.metaService.updateTag({
25+
name: 'description',
26+
content: 'Login with your twitch account to get started with the nullinside bot!'
27+
});
28+
this.titleService.setTitle("nullinside Twitch Bot");
29+
}
1930
}

src/src/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
88
<meta http-equiv="Pragma" content="no-cache"/>
99
<meta http-equiv="Expires" content="0"/>
10+
<meta name="description" content="The nullinside anti-bot, anti-hate raid, and anti-spam twitch bot and twitch streaming tools.">
1011
<meta name="viewport" content="width=device-width, initial-scale=1">
1112
<link rel="icon" type="image/x-icon" href="favicon.ico">
1213
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">

0 commit comments

Comments
 (0)