Skip to content

Commit 177fc87

Browse files
committed
updated "start.sh" with fix for "host" network mode
Signed-off-by: Oleksander Piskun <[email protected]>
1 parent 0516ac6 commit 177fc87

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

appinfo/info.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<description>
77
<![CDATA[Simplest skeleton of the Nextcloud application written in python]]>
88
</description>
9-
<version>3.0.0</version>
9+
<version>3.0.1</version>
1010
<licence>MIT</licence>
1111
<author mail="[email protected]" homepage="https://github.com/bigcat88">Alexander Piskun</author>
1212
<namespace>PyAppV2_skeleton</namespace>

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nc_py_api[app]>=0.19.0
1+
nc_py_api[app]>=0.19.1

start.sh

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
#!/bin/bash
2+
# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
3+
# SPDX-License-Identifier: AGPL-3.0-or-later
4+
25
set -e
36

47
# Only create a config file if HP_SHARED_KEY is set.
@@ -19,11 +22,12 @@ transport.tls.serverName = "harp.nc"
1922
metadatas.token = "$HP_SHARED_KEY"
2023
2124
[[proxies]]
22-
name = "$APP_ID"
23-
type = "tcp"
24-
localIP = "127.0.0.1"
25-
localPort = $APP_PORT
2625
remotePort = $APP_PORT
26+
type = "tcp"
27+
name = "$APP_ID"
28+
[proxies.plugin]
29+
type = "unix_domain_socket"
30+
unixPath = "/tmp/exapp.sock"
2731
EOF
2832
else
2933
echo "Directory /certs/frp not found. Creating configuration without TLS certificates."
@@ -36,11 +40,12 @@ transport.tls.enable = false
3640
metadatas.token = "$HP_SHARED_KEY"
3741
3842
[[proxies]]
39-
name = "$APP_ID"
40-
type = "tcp"
41-
localIP = "127.0.0.1"
42-
localPort = $APP_PORT
4343
remotePort = $APP_PORT
44+
type = "tcp"
45+
name = "$APP_ID"
46+
[proxies.plugin]
47+
type = "unix_domain_socket"
48+
unixPath = "/tmp/exapp.sock"
4449
EOF
4550
fi
4651
else
@@ -53,6 +58,6 @@ if [ -f /frpc.toml ] && [ -n "$HP_SHARED_KEY" ]; then
5358
frpc -c /frpc.toml &
5459
fi
5560

56-
# Start the main Python application
61+
# Start the main application (adjust it for your ExApp)
5762
echo "Starting main application..."
5863
exec python3 main.py

0 commit comments

Comments
 (0)