Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ services:
- BUILD_ENVIRONMENT=prod
tags:
- "nullinside-ui:latest"
volumes:
- /var/log/nginx/:/var/log/nginx/:rw
logging:
driver: loki
options:
Expand Down
2 changes: 1 addition & 1 deletion nginx/filesystem/etc/nginx/conf.d/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ server {
}

# Angular pages
location ~ ^/(background|user|vm-admin|twitch/|imdb-search|chunk|polyfills|main|styles|assets|favicon) {
location ~ ^/(background|user|vm-admin|twitch/|imdb-search|chunk|polyfills|main|styles|assets|favicon|robots.txt|sitemap.xml) {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html =404;
}
Expand Down
2 changes: 2 additions & 0 deletions nginx/filesystem/etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ user nginx;
worker_processes 1;

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


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

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

sendfile on;
#tcp_nopush on;
Expand Down
7 changes: 7 additions & 0 deletions nginx/filesystem/usr/share/nginx/html/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
User-agent: *
Allow: /
Disallow: /null/*
Disallow: /twitch-bot/*
Disallow: /imdb-search/*

Sitemap: https://nullinside.com/sitemap.xml
11 changes: 11 additions & 0 deletions nginx/filesystem/usr/share/nginx/html/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<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">
<url>
<loc>https://nullinside.com</loc>
</url>
<url>
<loc>https://nullinside.com/twitch/bot</loc>
</url>
<url>
<loc>https://nullinside.com/user/auth</loc>
</url>
</urlset>
3 changes: 3 additions & 0 deletions src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/src/app/view/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {LoadingIconComponent} from "../../common/components/loading-icon/loading
import {HttpErrorResponse} from '@angular/common/http';
import {TwitchLoginComponent} from '../../common/components/twitch-login/twitch-login.component';
import {AuthService} from "../../service/auth.service";
import {Meta, Title} from "@angular/platform-browser";

@Component({
selector: 'app-login',
Expand All @@ -23,6 +24,8 @@ export class LoginComponent implements OnInit {
private api = inject(NullinsideService);
private router = inject(Router);
private route = inject(ActivatedRoute);
private metaService: Meta = inject(Meta);
private titleService: Title = inject(Title);

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

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

ngOnInit(): void {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {Component} from '@angular/core';
import {Component, inject} from '@angular/core';
import {StandardBannerComponent} from '../../../common/components/standard-banner/standard-banner.component';
import {TwitchLoginComponent} from '../../../common/components/twitch-login/twitch-login.component';
import {TwitchBotFaqComponent} from "../twitch-bot-faq/twitch-bot-faq.component";
import {environment} from "../../../../environments/environment";
import {Meta, Title} from '@angular/platform-browser';

@Component({
selector: 'app-twitch-bot-index',
Expand All @@ -16,4 +17,14 @@ import {environment} from "../../../../environments/environment";
})
export class TwitchBotIndexComponent {
protected readonly environment = environment;
private metaService: Meta = inject(Meta);
private titleService: Title = inject(Title);

constructor() {
this.metaService.updateTag({
name: 'description',
content: 'Login with your twitch account to get started with the nullinside bot!'
});
this.titleService.setTitle("nullinside Twitch Bot");
}
}
1 change: 1 addition & 0 deletions src/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="0"/>
<meta name="description" content="The nullinside anti-bot, anti-hate raid, and anti-spam twitch bot and twitch streaming tools.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
Expand Down
Loading