broadfield-dev commited on
Commit
6512f1d
·
verified ·
1 Parent(s): cbff5ad

Create nginx.conf

Browse files
Files changed (1) hide show
  1. nginx.conf +30 -0
nginx.conf ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ user user;
2
+ worker_processes 1;
3
+ events {
4
+ worker_connections 1024;
5
+ }
6
+ http {
7
+ server {
8
+ listen 7860;
9
+ server_name localhost;
10
+
11
+ # Proxy / to Flask app
12
+ location / {
13
+ proxy_pass http://localhost:5000;
14
+ proxy_set_header Host $host;
15
+ proxy_set_header X-Real-IP $remote_addr;
16
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
17
+ }
18
+
19
+ # Proxy /vnc to noVNC
20
+ location /vnc {
21
+ proxy_pass http://localhost:6080;
22
+ proxy_set_header Host $host;
23
+ proxy_set_header X-Real-IP $remote_addr;
24
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
25
+ proxy_http_version 1.1;
26
+ proxy_set_header Upgrade $http_upgrade;
27
+ proxy_set_header Connection "upgrade";
28
+ }
29
+ }
30
+ }