[mirotalk] - added robots & html GZip compression

This commit is contained in:
Miroslav Pejic
2021-06-06 18:07:36 +02:00
parent 57bd8a0c6f
commit f9517e75f4
4 changed files with 15 additions and 2 deletions
+1
View File
@@ -15,6 +15,7 @@
"license": "CC-BY-NC-ND-4.0",
"homepage": "https://github.com/miroslavpejic85/mirotalk",
"dependencies": {
"compression": "^1.7.4",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"ngrok": "^4.0.1",
+11 -1
View File
@@ -7,14 +7,24 @@ http://patorjk.com/software/taag/#p=display&f=ANSI%20Regular&t=Server
     ██ ██     ██   ██  ██  ██  ██     ██   ██ 
███████ ███████ ██  ██   ████   ███████ ██  ██                 
*/
/*
dependencies: {
compression : https://www.npmjs.com/package/compression
dotenv : https://www.npmjs.com/package/dotenv
express : https://www.npmjs.com/package/express
ngrok : https://www.npmjs.com/package/ngrok
socket.io : https://www.npmjs.com/package/socket.io
}
*/
"use strict"; // https://www.w3schools.com/js/js_strict.asp
require("dotenv").config();
const compression = require("compression");
const express = require("express");
const path = require("path");
const app = express();
app.use(compression()); // Compress all HTTP responses GZip
const http = require("http");
const server = http.createServer(app);
const { Server } = require("socket.io");
-1
View File
@@ -2162,7 +2162,6 @@ async function shareRoomUrl() {
) {
playSound("newMessage");
Swal.fire({
allowOutsideClick: false,
background: swalBackground,
position: "center",
title: "Share the Room",
+3
View File
@@ -0,0 +1,3 @@
# Allow crawling of all content
User-agent: *
Disallow: