diff --git a/player/Dockerfile b/player/Dockerfile deleted file mode 100644 index 016e2fe..0000000 --- a/player/Dockerfile +++ /dev/null @@ -1,19 +0,0 @@ -FROM ubuntu - -# Install dependencies -RUN apt-get update && apt-get install -y nginx certbot python3-certbot-nginx - -# Contains the final certificates created by certbot -VOLUME /etc/letsencrypt - -# Application configuration for our site -COPY nginx/quic.video.conf /etc/nginx/conf.d/quic.video.conf - -# The script to init and run nginx -COPY nginx/run.sh /run/warp-client - -# Copy over the web contents -COPY dist/* /var/www/quic.video - -# Run the shell script -CMD /run/warp-client diff --git a/player/nginx/quic.video.conf b/player/nginx/quic.video.conf deleted file mode 100644 index 01f7b3f..0000000 --- a/player/nginx/quic.video.conf +++ /dev/null @@ -1,6 +0,0 @@ -server { - listen 80; - listen [::]:80; - server_name quic.video; - root /var/www/quic.video; -} diff --git a/player/nginx/run.sh b/player/nginx/run.sh deleted file mode 100755 index d7bdae7..0000000 --- a/player/nginx/run.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -euxo pipefail - -# Try to generate a certificate that expires in 90 days. -# This will listen on port 80 and serve a challenge file, proving we own the domain. -certbot --nginx --email kixelated@gmail.com -d quic.video --agree-tos - -# The certbot nginx plugin will automatically append the certs to the configuration. -nginx diff --git a/player/package.json b/player/package.json index 2feada3..20861a7 100644 --- a/player/package.json +++ b/player/package.json @@ -3,7 +3,7 @@ "scripts": { "serve": "parcel serve --https --host localhost.warp.demo --port 4444", "prebuild": "rm -rf dist", - "build": "parcel build", + "build": "parcel build --public-url ./", "check": "tsc --noEmit" }, "devDependencies": { diff --git a/player/src/index.html b/player/src/index.html index f4f2aa6..b45fd4f 100644 --- a/player/src/index.html +++ b/player/src/index.html @@ -12,12 +12,11 @@