This guide explains how to manage websites on your Ubuntu server using the custom management system.
~/dev/
├── help.md # This help file
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Server Error</title> | |
<style> | |
:root { | |
--primary-color: #dc2626; | |
--text-primary: #1f2937; |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>404 - Page Not Found</title> | |
<style> | |
:root { | |
--primary-color: #3b82f6; | |
--text-primary: #1f2937; |
user www-data; | |
worker_processes auto; | |
worker_rlimit_nofile 65535; | |
pid /run/nginx.pid; | |
events { | |
multi_accept on; | |
worker_connections 65535; | |
} |
#!/bin/bash | |
command=$1 | |
domain=$2 | |
show_help() { | |
echo "Usage: $0 <command> <domain>" | |
echo "" | |
echo "Commands:" | |
echo " create <domain> Create a new website configuration" |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Welcome</title> | |
<style> | |
body { | |
font-family: -apple-system, BlinkMacSystemFont, sans-serif; | |
line-height: 1.6; | |
margin: 0; |
# Rate limiting zones | |
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s; | |
limit_conn_zone $binary_remote_addr zone=addr:10m; | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /home/$USER/dev/www/default; | |
index index.html index.htm; |
package fal | |
import ( | |
"bytes" | |
"context" | |
"encoding/json" | |
"fmt" | |
"io" | |
"net/http" | |
"time" |
defmodule HashID do | |
@coder Hashids.new( | |
salt: "HmPbtapoe1FGfTFbEEeZcWKuakIQp3L0", | |
min_en: 6 | |
) | |
def encode(id, type) do | |
type = | |
type | |
|> to_string |