Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name my_fake_domain.com;
- access_log C:/nginxlogs/access.txt;
- location / {
- proxy_pass http://localhost:8080;
- proxy_set_header Host $host;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_read_timeout 1800;
- proxy_connect_timeout 1800;
- }
- }
- 'use strict';
- const http = require('http');
- const httpServer = http.createServer((req, res) => {
- res.writeHead(200, { 'Content-Type': 'text/plain' });
- res.end('okay');
- });
- httpServer.listen(8080, '0.0.0.0');
Add Comment
Please, Sign In to add comment