-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI generates gz versions of the json files #7
Comments
Oh god no! This is intended! :D You can setup your webserver so it does that: Please don't extract them, they will be up to 20x as big xD |
At least there should be an option to generate the non gz versions of the files |
I will add that to the config |
Added with 3b53932 |
I think you should notice those who use self hosted webservers to turn the I 'm new to Apache, and I couldn't have my map hosted correctly until I found this issue. Maybe more guys will run into this problem. Thanks! Anyway it's a great mapping tool! Update: I still don't know how to configure the Apache to host the map correctly. Of course it's not your fault, but I'll appreciate it if there's any help. |
@Sciroccogti Since i am not an apache expert myself, all i can offer you currently is this: the difference would be that its .json.gz files in our case.. maybe you can adapt from that |
@TBlueF It's very kind of you to offer the tutorial, but it's still not working. I have now switched to Nginx, however it turns out that my website is not working yet. I'm sorry to bother you, but could you PLZ have a look at my conf in server {
listen 80;
listen [::]:80;
server_name map.sciroccogti.top;
root /path/to/BlueMap/web/;
index index.html;
gzip on;
gzip_static on;
gzip_http_version 1.1;
gzip_disable "MSIE [1-6]\.";
gzip_vary on;
gzip_proxied expired no-cache no-store private auth;
#gzip_types text/plain text/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
#return 301 https://$server_name$request_uri;
location / {
try_files $uri $uri/ =404;
}
} BTW, I noticed that gzip over ssl is not safe, is that true? |
@Sciroccogti Sorry, i can and will not help you here with bluemap unrelated issues. |
@TBlueF That's OK. Thanks anyway. |
I figured it out. The lines about server {
listen 80;
listen [::]:80;
server_name map.sciroccogti.top;
root /path/to/BlueMap/web/;
index index.html;
gzip off;
gzip_static on;
gzip_proxied expired no-cache no-store private auth;
} |
Just in case anyone else wants to know how to get this working on their Apache webserver, I figured it out.
Edit - I forgot to note that this needs the HEADERS and REWRITE mods for Apache enabled. |
On mac/linux I had to extract all the generated files by hand to use with a self hosted webserver. I notice the CLI is WIP so not sure if you are aware of this issue. Felt like posting this so anyone who run across this can run the command bellow to fix it with out re rending an entire world (since mine toke over 3 hours to complete)
The command was:
The text was updated successfully, but these errors were encountered: