Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antoniogamiz/gateway
https://github.com/antoniogamiz/gateway
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/antoniogamiz/gateway
- Owner: antoniogamiz
- License: gpl-3.0
- Created: 2019-03-06T12:13:40.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-08T11:15:50.000Z (almost 6 years ago)
- Last Synced: 2024-10-30T01:39:47.150Z (2 months ago)
- Language: Dockerfile
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gateway
# Nginx setup
```
apt install nginx
rm /etc/nginx/sites-enabled/default
vim /etc/nginx/sites-enabled/manga-cradle.com
```Add this content to the file:
```
server {
listen 80;
server_name manga-cradle.com;location /health {
access_log off;
return 200 "healthy\n";
}location / {
proxy_pass http://localhost:8080/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_bypass $http_upgrade;
}
}
```