<commit_before>floxel
======

Simple voxel based strategy game engine<commit_msg>Add server instructions to README.<commit_after>floxel
======

Simple voxel based strategy game engine

Running the Server
======

Setup floxel or another host name in your /etc/hosts and create a matching
web server. If you use a host other than floxel you will need to update the 
value of S.server in settings.js. For example in nginx:

```
server {
	server_name floxel;
	
	location / {
		alias /web/floxel/;
	}
	
	location /server/ {
		proxy_pass         http://127.0.0.1:1337/;
		proxy_redirect     off;
	#	proxy_buffering off;
		proxy_set_header   Host             'floxel';
		proxy_set_header   X-Real-IP        $remote_addr;
		proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
		proxy_max_temp_file_size 0;
	}
}
```

Then, run the map server, in the server directory of the repo: 

```
node PATH_TO_FLOXEL/server/server.js
```
{'fraction_non_alphanumeric': 0.09472551130247578, 'fraction_numerical': 0.011840688912809472, 'mean_word_length': 3.449760765550239, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4275133', 'n_tokens_mistral': 345, 'n_tokens_neox': 309, 'n_words': 97}