From c16f90f8c6111213f0d4f814448d4eadfde58bda Mon Sep 17 00:00:00 2001 From: poma Date: Sun, 6 Oct 2019 09:34:03 +0300 Subject: [PATCH] minor changes --- Dockerfile | 3 --- README.md | 3 +++ docker-compose.yml | 2 +- main.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 README.md diff --git a/Dockerfile b/Dockerfile index 504125c..aad9a92 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,7 @@ FROM node:11 - WORKDIR /app COPY package.json package-lock.json ./ RUN npm install - COPY . . - EXPOSE 3000 CMD ["node", "main.js"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..14ba350 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# ip-echo + +Returns ip and geo data of server that made the request \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 994717a..6a4c7fd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '2' services: ip-echo: - image: poma/ip-echo + image: peppersec/ip-echo environment: # VIRTUAL_HOST: ip.tornado.cash # LETSENCRYPT_HOST: ip.tornado.cash diff --git a/main.js b/main.js index e63c321..c0a84b2 100644 --- a/main.js +++ b/main.js @@ -4,7 +4,7 @@ const cors = require('cors') const app = express() const port = 3000 -app.use(cors()); +app.use(cors()) app.get('/', (req, res) => { const ip = req.headers['x-real-ip'] || req.connection.remoteAddress