Skip to content

tinkertanker/miningbots-fe

 
 

Repository files navigation

MiningBots Frontend

This site connects to an ongoing MiningBots game and provices an birds-eye view of the entire map

Deployment Notes

Deploying this site publicly requires all endpoints be secured, ie https/wss. Reverse proxy non-TLS traffic as necessary such that your browser will not block loading mixed content from https and http sources.

An example of a Caddyfile (this assumes this code is stored in /opt/web/miningbots-fe)

game.bootcamp.tk.sg {
	tls /etc/ssl/fullchain1.pem /etc/ssl/privkey1.pem # Using the same Wildcard cert obtained with certbot
	header {
		Access-Control-Allow-Origin *
		Access-Control-Allow-Credentials true
		Access-Control-Allow-Methods *
		Access-Control-Allow-Headers *
		defer
	}
	root * /opt/web/miningbots-fe
	file_server
}

p1.bootcamp.tk.sg {
	tls /etc/ssl/fullchain1.pem /etc/ssl/privkey1.pem # Using the same Wildcard cert obtained with certbot
	header {
		Access-Control-Allow-Origin *
		Access-Control-Allow-Credentials true
		Access-Control-Allow-Methods *
		Access-Control-Allow-Headers *
		defer
	}
	reverse_proxy server.bootcamp.tk.sg:9001 {
		header_down -Access-Control-Allow-Origin
	}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 77.7%
  • HTML 14.1%
  • CSS 7.5%
  • Dockerfile 0.7%