Compare commits
2 Commits
441ca421ee
...
c51fc24478
Author | SHA1 | Date | |
---|---|---|---|
c51fc24478 | |||
e3b11fb719 |
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
||||
.nyc*
|
||||
node_modules
|
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
||||
FROM node:17-alpine
|
||||
|
||||
ENV NODE_ENV production
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm ci --only=production
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 80
|
||||
CMD [ "node", "src/" ]
|
@ -1,4 +1,4 @@
|
||||
[server]
|
||||
host=0.0.0.0
|
||||
port=3030
|
||||
port=80
|
||||
endpoint=
|
@ -1,3 +1,2 @@
|
||||
[telegram]
|
||||
polling=true
|
||||
token=
|
12058
package-lock.json
generated
Normal file
12058
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ussd-tg-proxy",
|
||||
"version": "0.0.2",
|
||||
"version": "0.2.1",
|
||||
"description": "ussd-tg-proxy",
|
||||
"main": "src/index.js",
|
||||
"repository": "https://git.grassecon.net/grassrootseconomics/ussd-tg-proxy.git",
|
||||
|
@ -6,7 +6,7 @@ const cache = require("./cache");
|
||||
const bot = require("./bot");
|
||||
const log = require("./log");
|
||||
|
||||
if (config.get("TELEGRAM_POLLING")) {
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
bot.api.deleteWebhook().then(() => {
|
||||
log.info("starting bot in polling mode");
|
||||
bot.start();
|
||||
|
Loading…
Reference in New Issue
Block a user