Skip to content

Instantly share code, notes, and snippets.

View namdau's full-sized avatar
🏠
Working from home

Nam Dau namdau

🏠
Working from home
View GitHub Profile
@namdau
namdau / vue-nginx.conf
Created July 31, 2017 18:04
Nginx config for Vuejs project with an API upstream
server {
server_name default_server;
# This is for Let's Encrypt certification renewal
include /etc/nginx/snippets/letsencrypt.conf;
# Redirect to https
location / {
return 301 https://$server_name$request_uri;
}
}
DROP FUNCTION IF EXISTS `slugify`;
DELIMITER ;;
CREATE DEFINER=`gaincity`@`localhost`
FUNCTION `slugify`(dirty_string varchar(200))
RETURNS varchar(200) CHARSET latin1
DETERMINISTIC
BEGIN
DECLARE x, y , z Int;
Declare temp_string, new_string VarChar(200);
Declare is_allowed Bool;
@namdau
namdau / laravel5.conf
Created November 24, 2015 07:39
Laravel Nginx Config
server {
listen 80;
server_name you_domain_or_ip
root /var/www/html;
index index.html index.htm index.php;
charset utf-8;
location / {