mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
rename appmgr
This commit is contained in:
committed by
Aiden McClelland
parent
9cf379f9ee
commit
edde478382
135
backend/src/nginx/main-ui.conf.template
Normal file
135
backend/src/nginx/main-ui.conf.template
Normal file
@@ -0,0 +1,135 @@
|
||||
|
||||
|
||||
server {{
|
||||
listen 443 ssl default_server;
|
||||
listen [::]:443 ssl default_server;
|
||||
ssl_certificate /etc/nginx/ssl/embassy_main.cert.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/embassy_main.key.pem;
|
||||
|
||||
root /var/www/html/main;
|
||||
|
||||
index index.html index.htm index.nginx-debian.html;
|
||||
|
||||
server_name .{lan_hostname};
|
||||
|
||||
proxy_buffering off;
|
||||
proxy_request_buffering off;
|
||||
proxy_socket_keepalive on;
|
||||
proxy_http_version 1.1;
|
||||
proxy_read_timeout 1800;
|
||||
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
gzip_min_length 1024;
|
||||
gzip_types text/plain text/css text/xml text/javascript application/javascript image/svg+xml font/tts font/otf font/eot font/openttype application/x-javascript application/xml;
|
||||
|
||||
|
||||
location /rpc/ {{
|
||||
proxy_pass http://127.0.0.1:5959/;
|
||||
}}
|
||||
|
||||
location /ws/ {{
|
||||
proxy_pass http://127.0.0.1:5960$request_uri;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
}}
|
||||
|
||||
location /rest/ {{
|
||||
proxy_pass http://127.0.0.1:5960$request_uri;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
client_max_body_size 0;
|
||||
}}
|
||||
|
||||
location /public/ {{
|
||||
proxy_pass http://127.0.0.1:5961/;
|
||||
}}
|
||||
|
||||
location /marketplace/eos/ {{
|
||||
# ns1.digitalocean.com, ns2.digitalocean.com, ns3.digitalocean.com
|
||||
resolver 173.245.58.51 173.245.59.41 198.41.222.173;
|
||||
proxy_pass {eos_marketplace}eos/;
|
||||
}}
|
||||
|
||||
location /marketplace/package/ {{
|
||||
# ns1.digitalocean.com, ns2.digitalocean.com, ns3.digitalocean.com
|
||||
resolver 173.245.58.51 173.245.59.41 198.41.222.173;
|
||||
proxy_pass {package_marketplace}package/;
|
||||
}}
|
||||
|
||||
location / {{
|
||||
try_files $uri $uri/ =404;
|
||||
}}
|
||||
}}
|
||||
server {{
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name .{lan_hostname};
|
||||
return 301 https://$host$request_uri;
|
||||
}}
|
||||
server {{
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
ssl_certificate /etc/nginx/ssl/embassy_main.cert.pem;
|
||||
ssl_certificate_key /etc/nginx/ssl/embassy_main.key.pem;
|
||||
|
||||
root /var/www/html/main;
|
||||
|
||||
index index.html index.htm index.nginx-debian.html;
|
||||
|
||||
server_name .{tor_hostname};
|
||||
|
||||
proxy_buffering off;
|
||||
proxy_request_buffering off;
|
||||
proxy_socket_keepalive on;
|
||||
proxy_http_version 1.1;
|
||||
proxy_read_timeout 1800;
|
||||
|
||||
gzip on;
|
||||
gzip_vary on;
|
||||
gzip_min_length 1024;
|
||||
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
|
||||
|
||||
location /rpc/ {{
|
||||
proxy_pass http://127.0.0.1:5959/;
|
||||
}}
|
||||
|
||||
location /ws/ {{
|
||||
proxy_pass http://127.0.0.1:5960$request_uri;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
}}
|
||||
|
||||
location /rest/ {{
|
||||
proxy_pass http://127.0.0.1:5960$request_uri;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
client_max_body_size 0;
|
||||
}}
|
||||
|
||||
location /public/ {{
|
||||
proxy_pass http://127.0.0.1:5961/;
|
||||
}}
|
||||
|
||||
location /marketplace/eos/ {{
|
||||
# ns1.digitalocean.com, ns2.digitalocean.com, ns3.digitalocean.com
|
||||
resolver 173.245.58.51 173.245.59.41 198.41.222.173;
|
||||
proxy_pass {eos_marketplace}eos/;
|
||||
}}
|
||||
|
||||
location /marketplace/package/ {{
|
||||
# ns1.digitalocean.com, ns2.digitalocean.com, ns3.digitalocean.com
|
||||
resolver 173.245.58.51 173.245.59.41 198.41.222.173;
|
||||
proxy_pass {package_marketplace}package/;
|
||||
}}
|
||||
|
||||
location / {{
|
||||
try_files $uri $uri/ =404;
|
||||
}}
|
||||
}}
|
||||
server {{
|
||||
listen 443 ssl;
|
||||
listen [::]:443;
|
||||
server_name .{tor_hostname};
|
||||
return 301 http://$host$request_uri;
|
||||
}}
|
||||
Reference in New Issue
Block a user