Skip to content

Instantly share code, notes, and snippets.

View martip07's full-sized avatar

Joseph martip07

View GitHub Profile
@martip07
martip07 / nginx.conf
Created November 19, 2018 22:06 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
# Advanced config for NGINX
server_tokens off;
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options nosniff;
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;
@martip07
martip07 / migrate-bitbucket.sh
Created July 17, 2019 20:33 — forked from kostajh/migrate-bitbucket.sh
Migrate repositories from gitolite (or somewhere else) to Bitbucket
#!/bin/bash
# Usage: ./bitbucket-migrate.sh repos.txt
#
# repos.txt should have one repository per line.
echo "Reading $1"
while read line
do
@martip07
martip07 / self_route.vcl
Created August 23, 2019 20:07 — forked from rezan/self_route.vcl
Self routing Varnish Cache cluster example
# Self routing cluster example
vcl 4.0;
import directors;
backend node1 {
.host = "node1.example.com";
.port = "80";
}
@martip07
martip07 / sendy-server
Created March 29, 2022 07:08 — forked from refringe/sendy-server
Nginx configuration file example for Sendy (http://sendy.co/).
server {
listen 80;
listen [::]:80;
server_name domain.com;
autoindex off;
index index.php index.html;
root /srv/www/domain.com/public;
@martip07
martip07 / sendy-server
Created March 29, 2022 07:08 — forked from refringe/sendy-server
Nginx configuration file example for Sendy (http://sendy.co/).
server {
listen 80;
listen [::]:80;
server_name domain.com;
autoindex off;
index index.php index.html;
root /srv/www/domain.com/public;