These scripts can be used to set up automic deployments in runcloud for laravel applications
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
0.In my 0th vps (for example Oracle Cloud free tier VPS, ubuntu 20.04, it allow me to create 2 free vps servers): | |
#sudo apt install tailscale(ref: https://tailscale.com/kb/1039/install-ubuntu-2004/) | |
wget https://pkgs.tailscale.com/stable/tailscale_1.38.4_amd64.tgz | |
tar zxvf tailscale_1.38.4_amd64.tgz | |
sudo cp tailscale_1.38.4_amd64/tailscale* /usr/bin/ | |
rm -rf tailscale_1.38.4_amd64* | |
sudo tailscale up //copy the showed url and authorize google sign-in in the web browser | |
ip addr show tailscale0 //for example: 100.71.153.9 | |
1. In my 1st vps(in china, for example my linux PC in my home): |
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
# wget -q https://gist.githubusercontent.com/amanjuman/8ad9e374cb970a352d08b950e3d3dbef/raw/ddf53d463c80dfe76f7594b3bb3a58df63cd2aad/default -O /etc/nginx/sites-available/default | |
server | |
{ | |
server_name ""; | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
#listen 443 ssl http2 default_server; | |
#listen [::]:443 ssl http2 default_server; | |
# Generate Self-Signed-SSL |
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
30 0 * * * root /usr/local/bin/sendy-backup > /dev/null 2>&1 |
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
# blog post: https://echorand.me/nginx-and-geoip2.html | |
worker_processes auto; | |
daemon off; | |
error_log /dev/stdout warn; | |
include /etc/nginx/modules/*.conf; | |
load_module modules/ngx_http_geoip2_module.so; | |
events { | |
} |
-
Follow https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04 up to step 3
-
Install WP https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lamp-on-ubuntu-18-04
-
Create wordpress.conf in /etc/nginx/sites-avaiable:
server {
listen 8080;
listen [::]:8080;
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 | |
TOKEN="xxxxxxxxxxxxxxxxxxx" | |
ZONE_ID=2222222222222222222222222 | |
# EMAIL=me@gmail.com | |
# KEY=11111111111111111111111111 | |
# Replace with | |
# -H "X-Auth-Email: ${EMAIL}" \ | |
# -H "X-Auth-Key: ${KEY}" \ |
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
#!/usr/bin/env bash | |
# Enter your license key below | |
license_key=XXXXXXXXXXXXXXXXX | |
curl -O -J -L 'https://sendy.co/download/?license=${license_key}' | |
filename=$(basename -- sendy-*.zip) | |
newdir="${filename%.*}" | |
echo ${newdir} |
-
Based on https://techwombat.com/enable-http2-apache-ubuntu-16-04/
-
This totorial is for an older Ubuntu 16.04, for a Ubuntu 18.04 please read here --> https://gist.github.com/GAS85/8dadbcb3c9a7ecbcb6705530c1252831 and for a Ubuntu 20.04 please read here* --> https://gist.github.com/GAS85/38eb5954a27d64ae9ac17d01bfe9898c
- A self-managed VPS or dedicated server with Ubuntu 16.04 running Apache 2.4.xx.
- For Ubuntu 18.04 please read here --> https://gist.github.com/GAS85/8dadbcb3c9a7ecbcb6705530c1252831
- A registered domain name with working HTTPS (TLS/SSL). HTTP/2 only works alongside HTTPS because most browsers, including Firefox and Chrome, don’t support HTTP/2 in cleartext (non-TLS) mode.
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
//maps.googleapis.com | |
//maps.gstatic.com | |
//fonts.googleapis.com | |
//fonts.gstatic.com | |
//ajax.googleapis.com | |
//apis.google.com | |
//google-analytics.com | |
//www.google-analytics.com | |
//ssl.google-analytics.com | |
//youtube.com |
NewerOlder