Compare commits

...

9 Commits

Author SHA1 Message Date
schlagmichdoch
e77f856515 increase version to v1.1.3 2023-02-25 17:03:44 +01:00
Xstar97TheNoob
0de92864eb fix IMAGE_NAME
Just tested this on my fork, works.
2023-02-25 17:02:19 +01:00
schlagmichdoch
8ecec5c1bf increase version to v1.1.2 2023-02-24 18:19:49 +01:00
schlagmichdoch
78cf0139b8 Merge pull request #47 from xstar97/patch-1
Fix(ghcr) update workflow variable to a static lowercase name
2023-02-24 18:12:01 +01:00
schlagmichdoch
591c76c15a fix dialog heights 2023-02-24 18:10:34 +01:00
Xstar97TheNoob
2a3d1d4105 Fix variable to a static lowercase name 2023-02-24 10:40:30 -05:00
schlagmichdoch
5bff933b6e Merge pull request #45 from xstar97/docs-fix
docs(ghcr) add deployment notes for ghcr
2023-02-24 16:23:19 +01:00
schlagmichdoch
0ba1bd7113 tidy up Docker deployment notes 2023-02-24 16:20:19 +01:00
Xstar97TheNoob
f9e214a1e5 docs(ghcr) add deployment notes for ghcr 2023-02-23 12:53:04 -05:00
8 changed files with 25 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ on:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository | downcase }}
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
@@ -48,4 +48,4 @@ jobs:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

View File

@@ -1,14 +1,22 @@
# Deployment Notes
The easiest way to get PairDrop up and running is by using Docker.
## Deployment with Docker from Docker Hub
## Deployment with Docker
> You must use a server proxy to set the X-Forwarded-For to prevent all clients from discovering each other (See [#HTTP-Server](#http-server)).
>
> To prevent bypassing the proxy and reach the docker container directly, `127.0.0.1` is specified in the run command.
### Image from Docker Hub
```bash
docker run -d --restart=unless-stopped --name=pairdrop -p 127.0.0.1:3000:3000 lscr.io/linuxserver/pairdrop
```
> You must use a server proxy to set the X-Forwarded-For to prevent all clients from discovering each other (See [#HTTP-Server](#http-server)).
>
> To prevent bypassing the proxy and reach the docker container directly, `127.0.0.1` is specified in the run command.
### Image from GHCR
```bash
docker run -d --restart=unless-stopped --name=pairdrop -p 127.0.0.1:3000:3000 ghcr.io/schlagmichdoch/pairdrop
```
### Options / Flags
Set options by using the following flags in the `docker run` command:

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "pairdrop",
"version": "1.1.1",
"version": "1.1.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "pairdrop",
"version": "1.1.1",
"version": "1.1.3",
"license": "ISC",
"dependencies": {
"express": "^4.18.2",

View File

@@ -1,6 +1,6 @@
{
"name": "pairdrop",
"version": "1.1.1",
"version": "1.1.3",
"description": "",
"main": "index.js",
"scripts": {

View File

@@ -1,4 +1,4 @@
const cacheVersion = 'v1.1.1';
const cacheVersion = 'v1.1.3';
const cacheTitle = `pairdrop-cache-${cacheVersion}`;
const urlsToCache = [
'index.html',

View File

@@ -423,6 +423,9 @@ x-dialog x-paper {
box-sizing: border-box;
transition: transform 300ms;
will-change: transform;
}
#pairDeviceDialog x-paper {
position: absolute;
top: max(50%, 350px);
height: 650px;

View File

@@ -1,4 +1,4 @@
const cacheVersion = 'v1.1.1';
const cacheVersion = 'v1.1.3';
const cacheTitle = `pairdrop-included-ws-fallback-cache-${cacheVersion}`;
const urlsToCache = [
'index.html',

View File

@@ -432,6 +432,9 @@ x-dialog x-paper {
box-sizing: border-box;
transition: transform 300ms;
will-change: transform;
}
#pairDeviceDialog x-paper {
position: absolute;
top: max(50%, 350px);
height: 650px;