-
Notifications
You must be signed in to change notification settings - Fork 1
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
50 additions
and
175 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
##### Notes for deploying on OpenSUSE | ||
|
||
Install nginx, uwsgi, uwsgi-python3 packages (need server repo enabled). | ||
|
||
Clone the repository to /srv/findingchart/appdata/ and chown -R nginx:nginx | ||
Move config/findingchart.ini to /etc/uwsgi/vassals/ (uWSGI Emperor config file) | ||
Move config/findingchart.conf to /etc/nginx/conf.d/ (nginx config file) | ||
|
||
Open port 80 in the firewall by setting `FW_SERVICES_EXT_TCP="80"` in /etc/sysconfig/SuSEfirewall2 | ||
|
||
Enable and start services | ||
|
||
``` | ||
systemctl enable nginx uwsgi | ||
systemctl start nginx uwsgi | ||
systemctl restart SuSEfirewall2 | ||
``` | ||
|
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,16 @@ | ||
server { | ||
listen 80; | ||
server_name _, localhost; | ||
|
||
location = /findingchart { rewrite ^ /findingchart/; } | ||
|
||
location /findingchart/static { | ||
alias /srv/findingchart/appdata/static; | ||
} | ||
|
||
location /findingchart/ { | ||
uwsgi_pass unix:/srv/findingchart/uwsgi.sock; | ||
uwsgi_param SCRIPT_NAME /findingchart; | ||
include uwsgi_params; | ||
} | ||
} |
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,15 @@ | ||
[uwsgi] | ||
socket = /srv/findingchart/uwsgi.sock | ||
chmod-socket = 775 | ||
chdir = /srv/findingchart/appdata | ||
master = true | ||
mount = /findingchart=findingchart.py | ||
callable = app | ||
uid = nginx | ||
gid = nginx | ||
processes = 1 | ||
threads = 1 | ||
plugins = python3,logfile | ||
logger = file:/srv/findingchart/uwsgi.log | ||
manage-script-name = true | ||
|
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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