-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
122 lines (96 loc) · 2.72 KB
/
nginx.conf
File metadata and controls
122 lines (96 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# r
# ain
# rai
# nrain
# rainrai
# nrainrain
# ainrainrain
# rainrainrainr
# ainrainrainrain
# rainrainrainrainr
# ainrainrainrainrainra
# inra nrainrainrainrainrai
# nrain inrainrainrainrainrain
# rain nrainrainrainrainrainrai
# nrai inrainrainrainrainrainrain
# rai inrainrainrainrainrainrainr
# rain nrainrainrainrainrainrainr
# rainr nrainrainrainrainrainrai
# nrain ainrainrainrainrainrain
# rainrainrainrainrainrainr
# rainranirainrainrainr
# ainrainrain
include /etc/nginx/main.d/*.conf;
# user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
# multi_accept on;
}
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
##
# SSL Settings
##
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # Dropping SSLv3, ref: POODLE
ssl_prefer_server_ciphers on;
##
# Logging Settings
##
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
##
# Gzip Settings
##
include /etc/nginx/conf.d/*.conf;
include /usr/share/nginx/modules/*.conf;
upstream go_server {
server 13.49.221.51:5000;
}
server {
listen 80;
server_name drip.monkeys.team;
access_log /var/log/nginx/Drip.access.log;
error_log /var/log/nginx/Drip.error.log;
client_max_body_size 20M;
location /api/v1/ {
proxy_pass http://go_server;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location / {
root /var/www/html/;
add_header Service-Worker-Allowed /;
index index.html;
add_header Cache-Control max-age=0;
autoindex on;
autoindex_exact_size on;
set $fallback_file /index.html;
if ($http_accept !~ text/html) {
set $fallback_file /null;
}
if ($uri ~ /$) {
set $fallback_file /null;
}
try_files $uri $fallback_file;
}
location /status {
access_log off;
default_type text/plain;
add_header Content-Type text/plain;
return 200 "alive";
}
sendfile on;
}
}