mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-22 06:22:16 +00:00
lint
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
user nginx;
|
user nginx;
|
||||||
pid /var/run/nginx.pid;
|
pid /var/run/nginx.pid;
|
||||||
|
|
||||||
|
|
||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
worker_rlimit_nofile 300000; # needs to be < ulimit -n
|
worker_rlimit_nofile 300000; # needs to be < ulimit -n
|
||||||
|
|
||||||
@@ -67,3 +66,4 @@ http {
|
|||||||
include /data/nginx/config/*;
|
include /data/nginx/config/*;
|
||||||
include /data/nginx/sites/*;
|
include /data/nginx/sites/*;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
7
lint.sh
Executable file
7
lint.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
ruff check --fix .
|
||||||
|
ruff format .
|
||||||
|
|
||||||
|
# https://github.com/soulteary/nginx-formatter
|
||||||
|
nginx-formatter
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
server {
|
server {
|
||||||
|
|
||||||
server_name ofm tiles.openfreemaps.org;
|
server_name ofm tiles.openfreemaps.org;
|
||||||
# test with
|
# test with
|
||||||
# curl -H "Host: ofm" http://localhost/planet/20231208_091355/tiles/11/637/1141.pbf
|
# curl -H "Host: ofm" http://localhost/planet/20231208_091355/tiles/11/637/1141.pbf
|
||||||
|
|
||||||
|
|
||||||
#access_log /data/ofm/logs/nginx-access.log access_json;
|
#access_log /data/ofm/logs/nginx-access.log access_json;
|
||||||
access_log off;
|
access_log off;
|
||||||
error_log /data/ofm/logs/nginx-error.log;
|
error_log /data/ofm/logs/nginx-error.log;
|
||||||
@@ -14,4 +14,14 @@ server {
|
|||||||
alias /data/ofm/runs/planet_20231208_091355/mnt_rw/extract;
|
alias /data/ofm/runs/planet_20231208_091355/mnt_rw/extract;
|
||||||
autoindex on; # Enables listing of directory
|
autoindex on; # Enables listing of directory
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ @empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
location @empty {
|
||||||
|
default_type text/plain; # TODO
|
||||||
|
return 200 "''";
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user