archive
This commit is contained in:
16
archive/simple_sample.nginx.conf
Normal file
16
archive/simple_sample.nginx.conf
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
server {
|
||||||
|
listen 80 default_server;
|
||||||
|
listen [::]:80 ;
|
||||||
|
index index.html index.htm index.nginx-debian.html;
|
||||||
|
|
||||||
|
server_name _;
|
||||||
|
|
||||||
|
root /var/www/html;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
include uwsgi_params;
|
||||||
|
uwsgi_pass unix:///srv/simple_sample_flat_index/uwsgi.sock;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
13
archive/simple_sample.service
Normal file
13
archive/simple_sample.service
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=uWSGI Simple Sample for Flat Page with Index Default
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
#User=www-data
|
||||||
|
#Group=www-data
|
||||||
|
WorkingDirectory=/srv/simple_sample_flat_index
|
||||||
|
Environment="PATH=/srv/simple_sample_flat_index/.env/bin"
|
||||||
|
ExecStart=/srv/simple_sample_flat_index/.env/bin/uwsgi --ini uwsgi.ini
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user