Skip to content

Instantly share code, notes, and snippets.

View sagar2009kumar's full-sized avatar
♟️
Pawn

Sagar Kumar sagar2009kumar

♟️
Pawn
View GitHub Profile
@sagar2009kumar
sagar2009kumar / launch.json
Created June 20, 2021 07:17
Debug confguration file for the debugging in docker
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
// Debug file for vscode in the docker
"version": "0.2.0",
"diagnosticLogging": true,
"configurations": [
{
"type": "node",
@sagar2009kumar
sagar2009kumar / 000-default.conf
Created August 24, 2020 11:34
Configuration file for apache 2
<VirtualHost *:8080>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
@sagar2009kumar
sagar2009kumar / ports.conf
Created August 24, 2020 11:32
Ports configuration for apache2
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf
Listen 8080
<IfModule ssl_module>
Listen 443
</IfModule>
@sagar2009kumar
sagar2009kumar / default
Created August 24, 2020 11:29
Nginx configuration file for varnish and magento.
upstream fastcgi_backend {
server unix:/run/php/php7.2-fpm.sock;
}
server {
listen 8080;
server_name magento.local;
set $MAGE_ROOT /var/www/html/magento;
include /var/www/html/magento/nginx.conf.sample;
@sagar2009kumar
sagar2009kumar / varnish.service
Created August 24, 2020 11:25
Varnish Daemon file located at /lib/systemd/system/varnish.service
[Unit]
Description=Varnish HTTP accelerator
Documentation=https://www.varnish-cache.org/docs/4.1/ man:varnishd
[Service]
Type=simple
LimitNOFILE=131072
LimitMEMLOCK=82000
ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m
ExecReload=/usr/share/varnish/varnishreload
@sagar2009kumar
sagar2009kumar / varnish
Last active August 24, 2020 11:23
Varnish daemon file at /etc/default/varnish
# Configuration file for varnish
#
# /etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCK
# to be set from this shell script fragment.
#
# Note: If systemd is installed, this file is obsolete and ignored. Please see
# /usr/share/doc/varnish/examples/varnish.systemd-drop-in.conf
# Should we start varnishd at boot? Set to "no" to disable.
START=yes
@sagar2009kumar
sagar2009kumar / default.vcl
Created August 24, 2020 09:44
VCl Configuration file for varnish.
#
# This is an example VCL file for Varnish.
#
# It does not do anything by default, delegating control to the
# builtin VCL. The builtin VCL is called when there is no explicit
# return statement.
#
# See the VCL chapters in the Users Guide at https://www.varnish-cache.org/docs/
# and https://www.varnish-cache.org/trac/wiki/VCLExamples for more examples.