Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Tileserver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MetaGerMaps
Tileserver
Commits
866e4f27
Commit
866e4f27
authored
1 year ago
by
Dominik Hebeler
Browse files
Options
Downloads
Patches
Plain Diff
add nginx deployment
parent
eb10e092
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#9083
passed
1 year ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker-compose.yaml
+8
-0
8 additions, 0 deletions
docker-compose.yaml
nginx/default.conf
+40
-0
40 additions, 0 deletions
nginx/default.conf
nginx/nginx.conf
+31
-0
31 additions, 0 deletions
nginx/nginx.conf
with
79 additions
and
0 deletions
docker-compose.yaml
+
8
−
0
View file @
866e4f27
...
...
@@ -30,6 +30,14 @@ services:
traefik.http.middlewares.tileserversts.headers.stsincludesubdomains
:
false
traefik.http.middlewares.tileserversts.headers.stspreload
:
true
traefik.http.middlewares.tileserversts.headers.stsseconds
:
31536000
nginx
:
image
:
nginx:1.25.4
restart
:
unless-stopped
ports
:
-
8080:80
volumes
:
-
./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
-
./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
networks
:
traefik
:
external
:
true
This diff is collapsed.
Click to expand it.
nginx/default.conf
0 → 100644
+
40
−
0
View file @
866e4f27
server
{
listen
80
;
server_name
localhost
;
#access_log /var/log/nginx/host.access.log main;
# Disable root application access. You may want to allow this in development.
location
~ ^/$ {
return
404
;
}
# Disable root application access. You may want to allow this in development.
location
/
favicon
.
ico
{
return
404
;
}
location
/ {
proxy_pass
http
://
maptiler
:
8080
/;
proxy_pass_request_headers
on
;
# Enable proxy cache
#proxy_cache TileserverCache;
#proxy_cache_valid 200 1w;
# Set our custom CORS
#add_header 'Access-Control-Allow-Origin' $allow_origin;
# If you need to see nginx cache status. Uncomment line below.
add_header
X
-
Cache
-
Status
$
upstream_cache_status
;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page
500
502
503
504
/
50
x
.
html
;
location
= /
50
x
.
html
{
root
/
usr
/
share
/
nginx
/
html
;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
nginx/nginx.conf
0 → 100644
+
31
−
0
View file @
866e4f27
user
nginx
;
worker_processes
auto
;
error_log
/var/log/nginx/error.log
notice
;
pid
/var/run/nginx.pid
;
events
{
worker_connections
1024
;
}
http
{
include
/etc/nginx/mime.types
;
default_type
application/octet-stream
;
log_format
main
'
$remote_addr
-
$remote_user
[
$time_local
]
"
$request
"
'
'
$status
$body_bytes_sent
"
$http_referer
"
'
'"
$http_user_agent
"
"
$http_x_forwarded_for
"'
;
access_log
/var/log/nginx/access.log
main
;
sendfile
on
;
#tcp_nopush on;
keepalive_timeout
65
;
#gzip on;
include
/etc/nginx/conf.d/*.conf
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment