Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gga_load_data
Manage
Activity
Members
Labels
Plan
Issues
12
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
abims
e-infra
gga_load_data
Merge requests
!3
release 1.0.1
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
release 1.0.1
dev
into
master
Overview
0
Commits
18
Pipelines
0
Changes
15
Merged
Loraine Gueguen
requested to merge
dev
into
master
3 years ago
Overview
0
Commits
18
Pipelines
0
Changes
1
Expand
copy nginx conf from file or template
define required param in
config_example.yml
fix species folder name (remove
-
)
fix mount of unused
galaxy_data_libs.py
in docker-compose file
Edited
3 years ago
by
Loraine Gueguen
👍
0
👎
0
Merge request reports
Viewing commit
15287341
Prev
Next
Show latest version
1 file
+
25
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
15287341
added galaxy_nginx_conf writing
· 15287341
Arthur Le Bars
authored
3 years ago
gga_init.py
+
25
−
1
Options
@@ -76,13 +76,37 @@ class DeploySpeciesStack(speciesData.SpeciesData):
logging
.
debug
(
"
Using default banner for Tripal pages
"
)
self
.
config
.
pop
(
"
banner_path
"
,
None
)
# Write galaxy_nginx.conf
try
:
with
open
(
os
.
path
.
abspath
(
os
.
path
.
join
(
self
.
script_dir
,
"
galaxy_nginx.conf
"
)),
"
w
"
)
as
galaxy_nginx_conf
:
galaxy_nginx_conf
.
truncate
(
0
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param QUERY_STRING $query_string;
"
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param REQUEST_METHOD $request_method;
"
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param CONTENT_TYPE $content_type;
"
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param CONTENT_LENGTH $content_length;
"
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param REQUEST_URI $request_uri;
"
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param PATH_INFO $document_uri;
"
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param DOCUMENT_ROOT $document_root;
"
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param SERVER_PROTOCOL $server_protocol;
"
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param REQUEST_SCHEME $scheme;
"
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param HTTPS $https if_not_empty;
"
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param REMOTE_ADDR $remote_addr;
"
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param REMOTE_PORT $remote_port;
"
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param SERVER_PORT $server_port;
"
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param SERVER_NAME $server_name;
"
)
galaxy_nginx_conf
.
write
(
"
uwsgi_param HTTP_REMOTE_USER gga;
"
)
except
OSError
as
exc
:
logging
.
critical
(
"
Cannot write galaxy NginX conf file (%s)
"
%
os
.
path
.
abspath
(
self
.
script_dir
))
sys
.
exit
(
exc
)
# Create nginx dirs and write/re-write nginx conf
make_dirs
(
dir_paths_li
=
[
"
./nginx
"
,
"
./nginx/conf
"
])
try
:
with
open
(
os
.
path
.
abspath
(
"
./nginx/conf/default.conf
"
),
'
w
'
)
as
conf
:
conf
.
write
(
"
server {
\n\t
listen 80;
\n\t
server_name ~.;
\n\t
location /download/ {
\n\t\t
alias /project_data/;
\n\t\t
autoindex on;
\n\t
}
\n
}
"
)
# The species nginx conf
except
OSError
as
exc
:
logging
.
critical
(
"
Cannot
ed
it NginX conf file
"
)
logging
.
critical
(
"
Cannot
wr
it
e
NginX conf file
"
)
sys
.
exit
(
exc
)
# Return to main directory
Loading