This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
107 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
|
||
[public_server] | ||
10.10.0.10 ansible_python_interpreter=python | ||
10.10.0.10 | ||
|
||
|
||
[private_server] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
system |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
description "Reggie Registration portal" | ||
author "Rob Cameron" | ||
console log | ||
|
||
# used to be: start on startup | ||
# until we found some mounts weren't ready yet while booting: | ||
start on started networking | ||
stop on shutdown | ||
|
||
# Automatically Respawn: | ||
respawn | ||
respawn limit 99 5 | ||
|
||
script | ||
# Not sure why $HOME is needed, but we found that it is: | ||
export HOME="/reggie" | ||
|
||
exec start-stop-daemon --start -d /reggie -c vagrant --exec /usr/bin/python app.py runserver | ||
end script | ||
|
||
post-start script | ||
# Optionally put a script here that will notifiy you node has (re)started | ||
# /root/bin/hoptoad.sh "node.js has started!" | ||
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# You may add here your | ||
# server { | ||
# ... | ||
# } | ||
# statements for each of your virtual hosts to this file | ||
|
||
## | ||
# 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. | ||
## | ||
|
||
server { | ||
listen 80 default_server; | ||
listen [::]:80 default_server; | ||
|
||
# Make site accessible from http://localhost/ | ||
server_name localhost; | ||
|
||
location /license { | ||
root /vsrx_license; | ||
} | ||
|
||
location / { | ||
proxy_pass http://127.0.0.1:5000; | ||
} | ||
} |