[mirotalk] - added robots & html GZip compression
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -2162,7 +2162,6 @@ async function shareRoomUrl() {
|
||||
) {
|
||||
playSound("newMessage");
|
||||
Swal.fire({
|
||||
allowOutsideClick: false,
|
||||
background: swalBackground,
|
||||
position: "center",
|
||||
title: "Share the Room",
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# Allow crawling of all content
|
||||
User-agent: *
|
||||
Disallow:
|
||||
Reference in New Issue
Block a user