Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
27a1b5bb
Commit
27a1b5bb
authored
Jun 15, 2017
by
sim
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'testing' of
ssh://delanoe.org:1979/gargantext
into simon-testing
parents
116a22d2
97d431fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
94 additions
and
0 deletions
+94
-0
nginx.config
install/gargamelle/nginx.config
+94
-0
No files found.
install/gargamelle/nginx.config
0 → 100644
View file @
27a1b5bb
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
# the upstream component nginx needs to connect to
upstream
gargantext
{
server
unix
:///
tmp
/
gargantext
.
sock
;
# for a file socket
#server 127.0.0.1:8001; # for a web port socket (we'll use this first)
}
# Default server configuration
#
server
{
listen
80
default_server
;
listen
[::]:
80
default_server
;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
client_max_body_size
800
M
;
client_body_timeout
12
;
client_header_timeout
12
;
keepalive_timeout
15
;
send_timeout
10
;
root
/
var
/
www
/
html
;
# Add index.php to the list if you are using PHP
#index index.html index.htm index.nginx-debian.html;
server_name
_
stable
.
gargantext
.
org
gargantext
.
org
;
# Django media
location
/
media
{
alias
/
var
/
www
/
gargantext
/
media
;
# your Django project's media files - amend as required
}
location
/
static
{
alias
/
srv
/
gargantext_static
;
# your Django project's static files - amend as required
}
# Finally, send all non-media requests to the Django server.
location
/ {
uwsgi_pass
gargantext
;
include
uwsgi_params
;
}
#access_log off;
access_log
/
var
/
log
/
nginx
/
access
.
log
;
error_log
/
var
/
log
/
nginx
/
error
.
log
;
}
server
{
listen
80
;
listen
[::]:
80
;
server_name
dl
.
gargantext
.
org
;
error_page
404
/
index
.
html
;
location
/ {
root
/
var
/
www
/
dl
;
proxy_set_header
Host
$
host
;
proxy_buffering
off
;
}
access_log
/
var
/
log
/
nginx
/
dl
.
gargantext
.
org
-
access
.
log
;
error_log
/
var
/
log
/
nginx
/
dl
.
gargantext
.
org
-
error
.
log
;
}
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