base site for phantas.ma
This commit is contained in:
parent
1e082c6786
commit
d27f4ac0c0
32 changed files with 50 additions and 710 deletions
|
|
@ -9,19 +9,19 @@ server {
|
|||
root /var/www/html;
|
||||
autoindex off;
|
||||
}
|
||||
rewrite ^/(.*) https://njp.ma/$1 permanent;
|
||||
rewrite ^/(.*) https://phantas.ma/$1 permanent;
|
||||
}
|
||||
|
||||
server {
|
||||
server_tokens off;
|
||||
|
||||
server_name njp.ma;
|
||||
server_name phantas.ma;
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
ssl_trusted_certificate /etc/letsencrypt/live/njp.ma/chain.pem;
|
||||
ssl_certificate /etc/letsencrypt/live/njp.ma/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/njp.ma/privkey.pem;
|
||||
ssl_trusted_certificate /etc/letsencrypt/live/phantas.ma/chain.pem;
|
||||
ssl_certificate /etc/letsencrypt/live/phantas.ma/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/phantas.ma/privkey.pem;
|
||||
#include /etc/letsencrypt/nginx.conf;
|
||||
|
||||
location /favicon.ico {
|
||||
|
|
@ -1,14 +1,14 @@
|
|||
[Unit]
|
||||
Description=njpma
|
||||
Description=phantasma
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
User=pandora
|
||||
Group=pandora
|
||||
WorkingDirectory=/srv/njpma
|
||||
WorkingDirectory=/srv/phantasma
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
ExecStart=/srv/njpma/venv/bin/gunicorn app.wsgi:application --reuse-port -b [::]:8080
|
||||
ExecStart=/srv/phantasma/venv/bin/gunicorn app.wsgi:application --reuse-port -b [::]:8085
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue