Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
errorx666 committed Jul 5, 2023
0 parents commit 986c609
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM nginx:latest
COPY nginx.conf /etc/nginx/nginx.conf
57 changes: 57 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
daemon off;
user nginx;
worker_processes auto;

error_log /var/log/nginx/error.log notice;
pid /var/run/nginx.pid;

events {
use epoll;
accept_mutex on;
worker_connections 1024;
}

http {
gzip on;
gzip_comp_level 2;
gzip_min_length 512;
server_names_hash_bucket_size 128;
server_tokens off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
client_body_timeout 5;
server {
listen 80;
listen [::]:80;
server_name r3.jovalent.com;
keepalive_timeout 5;
client_max_body_size 1M;

location / {
proxy_buffering off;
proxy_pass http://tsaukpaetra.com:8880/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}

location /socket.io/ {
proxy_pass http://tsaukpaetra.com:8880/socket.io/;
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 $remote_addr;
}

location /health {
access_log off;
add_header 'Content-Type' 'text/plain';
return 200 "OK\n";
}
}
}
5 changes: 5 additions & 0 deletions render.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
services:
- type: web
name: nginx
runtime: docker
healthCheckPath: /health

0 comments on commit 986c609

Please sign in to comment.