This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the magic happens here: =404 | |
server { | |
server_name domain.com; | |
index index.html; | |
location /projec1 { | |
alias /var/www/projec1; | |
try_files $uri $uri/ /index.html =404; | |
} | |
location /projec2 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Disable .htaccess and other hidden files | |
location ~ /\.(?!well-known).* { | |
deny all; | |
access_log off; | |
log_not_found off; | |
} |
thiagozanetti/react-intl-currency-input - yarn add react-intl-currency-input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:443> | |
# ... | |
RequestHeader set X_FORWARDED_PROTO 'https' | |
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DATE=`date +%Y-%m-%d` | |
DATABASE='dbname' | |
USER='username' | |
PASS='password' | |
mysqldump -u $USER -p$PASS $DATABASE > dump-$DATE.sql | |
zip dump-$DATE.sql.zip dump-$DATE.sql | |
rm dump-$DATE.sql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - | |
sudo apt-get install -y nodejs |