Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geosphere-mapserver
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
cspp_geo
geosphere
geosphere-mapserver
Commits
8cca40fd
Commit
8cca40fd
authored
5 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Add basic working MapCache set of files
Assumes exiting SQLite database
parent
67d07dd3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mapserver/Dockerfile
+4
-0
4 additions, 0 deletions
mapserver/Dockerfile
mapserver/site-conf
+10
-1
10 additions, 1 deletion
mapserver/site-conf
with
14 additions
and
1 deletion
mapserver/Dockerfile
+
4
−
0
View file @
8cca40fd
...
...
@@ -54,6 +54,7 @@ COPY cgi-bin/* /usr/lib/cgi-bin/
# Point apache to the mapserver binary
RUN
ln
-s
/usr/local/bin/mapserv /usr/lib/cgi-bin/mapserv
&&
\
ln
-s
/usr/local/bin/mapserv /usr/lib/cgi-bin/mapserv.fcgi
&&
\
chown
${
APACHE_RUN_USER
}
:
${
APACHE_RUN_GROUP
}
/usr/lib/cgi-bin/
*
&&
\
chown
-h
${
APACHE_RUN_USER
}
:
${
APACHE_RUN_GROUP
}
/usr/lib/cgi-bin/
*
...
...
@@ -66,6 +67,9 @@ COPY html/ /var/www/html/
COPY
sql/ /work/sql/
RUN
sqlite3
-init
/work/sql/goesr_crs.sql /usr/local/share/proj/proj.db
# Check the config before we finish
RUN
apache2ctl configtest
# https://httpd.apache.org/docs/2.4/stopping.html#gracefulstop
STOPSIGNAL
WINCH
...
...
This diff is collapsed.
Click to expand it.
mapserver/site-conf
+
10
−
1
View file @
8cca40fd
...
...
@@ -28,16 +28,25 @@
#Include conf-available/serve-cgi-bin.conf
# Custom CSPP Geo
# LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine
on
# /wms/goes16/abi/fldk/
RewriteRule
"^/wms/([^/]+)/([^/]+)/([^/]+)/l1b?(.*)" "/cgi-bin/mapserv?map=/work/mapfiles/$1_$2_$3_l1b.map&$4" [PT,QSA]
# FCGI version of the above
RewriteRule
"^/fwms/([^/]+)/([^/]+)/([^/]+)/l1b?(.*)" "/cgi-bin/mapserv.fcgi?map=/work/mapfiles/$1_$2_$3_l1b.map&$4" [PT,QSA]
# /wms_times/g16/abi/radf/true_color
RewriteRule
"^/wms_times/([^/]+)/([^/]+)/([^/]+)/([^/]+)" "/cgi-bin/layer_times.py?layer=/data/tiles/$1/$2/$3/$4/$4.shp" [PT,QSA]
# FIXME: We need to include the sector
# /data/goes/grb/goes16/2020/2020_01_21_021/abi/L1b/RadF/GOES-16_ABI_RadF_C01_20200121_000016_GOES-East.tif
# "/data/tiles/g16/abi/radf/true_color/true_color"
LogLevel
alert rewrite:trace6
# handler should be added by the enabled module
#AddHandler fcgid-script fcgi
<
IfModule
mod_fcgid.c
>
FcgidMaxProcessesPerClass 30
FcgidInitialEnv PROJ_LIB /usr/local/share/proj
FcgidInitialEnv LD_LIBRARY_PATH "/usr/local/lib:/usr/local/pgsql/lib:/usr3/pkg3/oracle9/lib"
</
IfModule
>
</
VirtualHost
>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
\ No newline at end of file
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