Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Blueriq has a standard Material Theme packaged but when creating your own theme this must be deployed somehow. 
A way to do so can be done via nginx / Tomcat / or whatever you prefer to use. Below you will find an example on how to do this for nginx


NGINX

For getting started with NGINX please take a look at their documentation: https://www.nginx.com/resources/wiki/ 

Code Block
languagebash
titlenginx.conf
collapsetrue
error_log logs/error.log;

events {
	worker_connections 1024;
}

http {
	upstream revProxyRuntime {
		# 1: Replace <host>:<port>, example: my.runtime.local:8080
		server <host>:<port>;
	}
	
	server {
		include ../conf/mime.types;
		listen 1337;

		location / {
			root html;
			index index.html index.htm;
			try_files $uri $uri/ /index.html =404;
		}
		
		# 2: /server matches with what was configured in the environment.ts baseUrl
		location /server {
			proxy_set_header Host $host;
			proxy_set_header X-Forwarded-Host $host:$server_port;
			proxy_set_header X-Forwarded-Server $host;
			proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
			
			# 3: This uses the upstream (step 1): So this becomes: http://host:port/Runtime/server/$and_the_rest_of_it;
			# Only change the /Runtime part if needed so
			proxy_pass http://revProxyRuntime/Runtime$request_uri;
			
			proxy_cookie_path /Runtime /;
		}
	}
}