diff --git a/Caddyfile-playground.ms b/Caddyfile-playground.ms new file mode 100644 index 0000000..1814703 --- /dev/null +++ b/Caddyfile-playground.ms @@ -0,0 +1,15 @@ +{ + admin off +} + +example.com, www.example.com { + encode gzip + tls /etc/ssl/certs/example.com.pem /etc/ssl/private/example.com.key + + root * /var/www/example.com + file_server browse +} + +:80 { + redir https://{host}{uri} permanent +} \ No newline at end of file diff --git a/landing/playground.ms.html b/landing/playground.ms.html index e585388..11ff982 100644 --- a/landing/playground.ms.html +++ b/landing/playground.ms.html @@ -3,7 +3,7 @@ - Playground + Playground Network + + +
+

Playground Network

+
+
🔐

PinVault

Password manager

+
☁️

Nextcloud

Cloud storage

+
🌐

OpenCloud

OpenCloud service

+
📋

Paste

Pastebin service

+
🏛️

Archive

Website archiving

+
+
+ + \ No newline at end of file diff --git a/nginx-playground.ms b/nginx-playground.ms new file mode 100644 index 0000000..42ae04a --- /dev/null +++ b/nginx-playground.ms @@ -0,0 +1,26 @@ +# ============================================================ +# example.com - Main landing page (HTTPS) +# ============================================================ +server { + listen 443 ssl; + server_name example.com www.example.com; + + ssl_certificate /etc/ssl/certs/example.com.pem; + ssl_certificate_key /etc/ssl/private/example.com.key; + ssl_protocols TLSv1.2 TLSv1.3; + ssl_ciphers HIGH:!aNULL:!MD5; + + root /var/www/example.com; + index index.html index.htm; + + location / { + try_files $uri $uri/ =404; + } +} + +# HTTP -> HTTPS redirect for example.com +server { + listen 80; + server_name example.com www.example.com; + return 301 https://$host$request_uri; +} \ No newline at end of file