Skip to content

Instantly share code, notes, and snippets.

View BagriyDmitriy's full-sized avatar

BagriyDmitriy

View GitHub Profile
@BagriyDmitriy
BagriyDmitriy / install-comodo-ssl-cert-for-nginx.rst
Created November 16, 2019 13:06 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

@BagriyDmitriy
BagriyDmitriy / laravel-queues-high-and-default.service
Created October 16, 2019 10:49
/etc/systemd/system/laravel-queues-high-and-default.service - systemd service config for centos 7 (laravel-queue)
# Laravel queue worker using systemd
# ----------------------------------
#
# /etc/systemd/system/laravel-queues-high-and-default.service
#
# run this command to enable service:
# systemctl daemon-reload
# systemctl enable laravel-queues-high-and-default.service
# systemctl start laravel-queues-high-and-default.service
@BagriyDmitriy
BagriyDmitriy / laravel-echo-server.service
Last active September 6, 2022 04:11
/etc/systemd/system/laravel-echo-server.service - systemd service config for centos 7 (laravel-echo-server)
# Laravel laravel-echo-server worker using systemd
# ----------------------------------
#
# /etc/systemd/system/laravel-echo-server.service
#
# run this command to enable service:
# systemctl daemon-reload
# systemctl enable laravel-echo-server.service
# systemctl start laravel-echo-server.service
@BagriyDmitriy
BagriyDmitriy / supervisord.conf
Created October 16, 2019 07:07
/etc/supervisord.conf - Supervisord config for centos 7 (two queue and laravel-echo-server)
[program:laravel-echo-server-sodevb]
process_name=%(program_name)s_%(process_num)02d
directory=/var/www/servername/html/base
command=/usr/bin/laravel-echo-server start
autostart=true
autorestart=true
user=root
numprocs=1
priority=999