Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Daniel Baur
cloudify3
Commits
7930c5b1
Commit
7930c5b1
authored
Jun 17, 2015
by
Daniel Baur
Browse files
fixed nginx config, fixed postgres remote listening
parent
0f841dc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
29 deletions
+16
-29
ghost-openstack/resources/nginx/nginx.default.template
ghost-openstack/resources/nginx/nginx.default.template
+10
-29
ghost-openstack/scripts/postgre/install-ubuntu.sh
ghost-openstack/scripts/postgre/install-ubuntu.sh
+6
-0
No files found.
ghost-openstack/resources/nginx/nginx.default.template
View file @
7930c5b1
##
# 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.
##
upstream backend_hosts {
{% for id, backend in backends.iteritems() %}
server {{ backend.address }}:2368;
{% endfor %}
}
server {
listen 80
default_server
;
listen [::]:80 default_server ipv6only=on
;
listen 80;
server_name localhost
;
root /usr/share/nginx/html;
index index.html index.htm;
upstream ghost {
{% for id, backend in backends.iteritems() %}
server {{ backend.address }}:2368
{% endfor %}
}
# Make site accessible from http://localhost/
server_name localhost;
location / {
proxy_pass http://ghost;
}
location / {
proxy_pass http://backend_hosts;
}
}
\ No newline at end of file
ghost-openstack/scripts/postgre/install-ubuntu.sh
View file @
7930c5b1
...
...
@@ -6,4 +6,10 @@ ctx logger debug "${COMMAND}"
sudo
apt-get update
sudo
apt-get
-y
install
postgresql
sudo echo
"host all all 0.0.0.0/0 trust"
|
sudo tee
--append
/etc/postgresql/9.3/main/pg_hba.conf
sudo sed
-i
"/listen_addresses/c
\l
isten_addresses='*'"
/etc/postgresql/9.3/main/postgresql.conf
sudo
-H
-u
postgres bash
-c
'/usr/bin/createdb ghost_testing -O postgres'
sudo
service postgresql restart
ctx logger info
"Installed postgre"
\ No newline at end of file
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