Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Owain Jones
gliders-webserver
Commits
15e2540f
Commit
15e2540f
authored
9 years ago
by
root
Browse files
Options
Download
Email Patches
Plain Diff
added config files for elasticsearch and phpCI
parent
5b0e79a6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
93 additions
and
9 deletions
+93
-9
elasticsearch.nginx.conf
elasticsearch.nginx.conf
+9
-0
elasticsearch.repo
elasticsearch.repo
+6
-0
gliders.nginx.conf
gliders.nginx.conf
+4
-8
install.sh
install.sh
+2
-1
nginx.conf
nginx.conf
+5
-0
phpci.nginx.conf
phpci.nginx.conf
+67
-0
No files found.
elasticsearch.nginx.conf
0 → 100644
View file @
15e2540f
server
{
listen
80
;
listen
8080
;
server_name
es
.
dev
.
gliders
.
vm
;
location
/ {
proxy_pass
http
://
127
.
0
.
0
.
1
:
9200
;
}
}
This diff is collapsed.
Click to expand it.
elasticsearch.repo
0 → 100644
View file @
15e2540f
[elasticsearch-2.x]
name=Elasticsearch repository for 2.x packages
baseurl=http://packages.elastic.co/elasticsearch/2.x/centos
gpgcheck=1
gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch
enabled=1
This diff is collapsed.
Click to expand it.
gliders.nginx.conf
View file @
15e2540f
...
...
@@ -8,15 +8,11 @@ map $host $symfony_root {
default
/
home
/
gliders
/
code
/
gliders
-
website
;
}
upstream
phpfcgi
{
server
unix
:/
var
/
run
/
php5
-
fpm
.
sock
;
#for PHP-FPM running on UNIX socket
}
server
{
listen
80
;
listen
8080
;
server_name
gliders
.
vm
*
.
gliders
.
vm
;
server_name
gliders
.
vm
dev
.
gliders
.
vm
;
root
$
symfony_root
/
web
;
error_log
/
var
/
log
/
nginx
/
gliders
.
error
.
log
;
...
...
@@ -26,12 +22,12 @@ server {
rewrite
^/
app
\.
php
/?(.*)$ /$
1
permanent
;
location
/ {
index
app
.
php
;
index
app
_dev
.
php
;
try_files
$
uri
@
rewriteapp
;
}
location
@
rewriteapp
{
rewrite
^(.*)$ /
app
.
php
/$
1
last
;
rewrite
^(.*)$ /
app
_dev
.
php
/$
1
last
;
}
# pass the PHP scripts to FastCGI server from upstream phpfcgi
...
...
@@ -78,4 +74,4 @@ server {
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param HTTPS on;
# }
#
}
\ No newline at end of file
# }
This diff is collapsed.
Click to expand it.
install.sh
View file @
15e2540f
...
...
@@ -30,6 +30,7 @@ yum install python-inotify numpy python-matplotlib python-virtualenv
python
-m
easy_install pip
pip
install
pandas
pip
install
css-html-js-minify
pip
install
bcrypt
# Install (& configure) sendmail
yum
install
sendmail sendmail-cf m4
...
...
@@ -94,4 +95,4 @@ git clone git@gitlab.noc.soton.ac.uk:owanes/gliders-testwebsite.git
# Restart (needed to get firewall to open ports for web, kernel might be
# updated etc.)
reboot
\ No newline at end of file
reboot
This diff is collapsed.
Click to expand it.
nginx.conf
View file @
15e2540f
...
...
@@ -33,6 +33,11 @@ http {
include
/etc/nginx/mime.types
;
default_type
application/octet-stream
;
charset
utf-8
;
upstream
phpfcgi
{
server
unix:/var/run/php5-fpm.sock
;
#for PHP-FPM running on UNIX socket
}
# Load modular configuration files from the /etc/nginx/conf.d directory.
# See http://nginx.org/en/docs/ngx_core_module.html#include
...
...
This diff is collapsed.
Click to expand it.
phpci.nginx.conf
0 → 100644
View file @
15e2540f
# https://www.nginx.com/resources/wiki/start/topics/recipes/symfony/
# NOTE: This makes any .php file other than app, app_dev and config.php
# downloadable. If you want one to run, add it to the "pass the PHP scripts to
# upstream FCGI" location section below. Be careful adding PHP files with
# sensitive data like passwords inside them.
server
{
listen
80
;
listen
8080
;
server_name
phpci
.
dev
.
gliders
.
vm
;
root
/
home
/
gliders
/
code
/
phpci
/
public
;
error_log
/
var
/
log
/
nginx
/
phpci
.
error
.
log
;
access_log
/
var
/
log
/
nginx
/
phpci
.
access
.
log
;
location
/ {
try_files
$
uri
@
phpci
;
}
# pass the PHP scripts to FastCGI server from upstream phpfcgi
location
@
phpci
{
fastcgi_pass
phpfcgi
;
fastcgi_index
index
.
php
;
fastcgi_buffers
256
4
k
;
include
fastcgi_params
;
fastcgi_param
SCRIPT_FILENAME
$
document_root
/
index
.
php
;
fastcgi_param
SCRIPT_NAME
index
.
php
;
fastcgi_param
HTTPS
off
;
}
}
# We don't yet have an SSL cert (not like a VM on my own machine needs one...)
# server {
# listen 443;
#
# server_name gliders.vm *.gliders.vm;
# root /home/gliders/code/gliders-website/web;
#
# ssl on;
# ssl_certificate /etc/ssl/certs/symfony2.crt;
# ssl_certificate_key /etc/ssl/private/symfony2.key;
#
# error_log /var/log/nginx/symfony2.error.log;
# access_log /var/log/nginx/symfony2.access.log;
#
# # strip app.php/ prefix if it is present
# rewrite ^/app\.php/?(.*)$ /$1 permanent;
#
# location / {
# index app.php;
# try_files $uri @rewriteapp;
# }
#
# location @rewriteapp {
# rewrite ^(.*)$ /app.php/$1 last;
# }
#
# # pass the PHP scripts to FastCGI server from upstream phpfcgi
# location ~ ^/(app|app_dev|config)\.php(/|$) {
# fastcgi_pass phpfcgi;
# fastcgi_split_path_info ^(.+\.php)(/.*)$;
# include fastcgi_params;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param HTTPS on;
# }
# }
This diff is collapsed.
Click to expand it.
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