minor changes

This commit is contained in:
poma 2019-10-06 09:34:03 +03:00
parent ba0d8d5c6d
commit c16f90f8c6
4 changed files with 5 additions and 5 deletions

View File

@ -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"]

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# ip-echo
Returns ip and geo data of server that made the request

View File

@ -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

View File

@ -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