Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
clinicaltrials
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
david Chavalarias
clinicaltrials
Commits
db43098d
Commit
db43098d
authored
Jan 06, 2017
by
Romain Loth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated real-world conf
parent
7eb215ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
41 deletions
+14
-41
comex_and_registration.nginx_deployed.conf
setup/comex_and_registration.nginx_deployed.conf
+14
-41
No files found.
setup/comex_and_registration.nginx_deployed.conf
View file @
db43098d
# Full server config: php comex as root and
regcomex a
s subpath
# =============================================================
# Full server config: php comex as root and
api + reg as service
s subpath
# =============================================================
===========
server
{
listen
80
;
listen
[::]:
80
;
# in production
# server_name communityexplorer.org
server_name
_
;
# server_name communityexplorer.org;
server_name
_
;
# adapt path to your php docroot
root
/
var
/
www
;
# get the logs in a custom place
# (adapt paths)
access_log
/
home
/
ubuntu
/
active_webapps
/
outer_nginx_access
.
log
;
error_log
/
home
/
ubuntu
/
active_webapps
/
outer_nginx_error
.
log
;
# independant app with its own nginx serving:
# the php root on '/'
# the python server on 'services/'
location
/ {
index
index
.
html
index
.
php
;
}
location
~ \.
php
$ {
include
snippets
/
fastcgi
-
php
.
conf
;
fastcgi_pass
unix
:/
run
/
php
/
php7
.
0
-
fpm
.
sock
;
# here we adapted $documentroot to our real php docroot
fastcgi_param
SCRIPT_FILENAME
/
var
/
www
/$
fastcgi_script_name
;
# ---------
}
# no root here => independant app
# (but /locationpath must match this app's default route)
location
/
regcomex
{
# point to app container's redirected port
proxy_pass
http
://
0
.
0
.
0
.
0
:
32790
;
# pointing to local bridge to the dockerized nginx serving all comex2 parts
proxy_pass
http
://
0
.
0
.
0
.
0
:
8080
;
proxy_redirect
off
;
# useful to keep track of original IP before reverse-proxy
...
...
@@ -36,22 +25,6 @@ server {
proxy_set_header
X
-
Real
-
IP
$
remote_addr
;
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
X
-
Forwarded
-
Host
$
server_name
;
# get the logs in a custom place
# (adapt paths)
access_log
/
home
/
ubuntu
/
active_webapps
/
regcomex
/
logs
/
nginx
/
access
.
log
;
# error_log /home/ubuntu/active_webapps/regcomex/logs/nginx/error.log debug;
error_log
/
home
/
ubuntu
/
active_webapps
/
regcomex
/
logs
/
nginx
/
error
.
log
;
}
# faster static serving
location
/
static
{
alias
/
home
/
ubuntu
/
active_webapps
/
regcomex
/
static
;
autoindex
on
;
}
location
~ /\.
ht
{
deny
all
;
}
# for minidoors api
...
...
@@ -63,5 +36,5 @@ server {
proxy_set_header
X
-
Forwarded
-
For
$
proxy_add_x_forwarded_for
;
proxy_set_header
X
-
Forwarded
-
Host
$
server_name
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment