File tree 3 files changed +16
-11
lines changed
3 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 6
6
<description >
7
7
<![CDATA[ Simplest skeleton of the Nextcloud application written in python]]>
8
8
</description >
9
- <version >3.0.0 </version >
9
+ <version >3.0.1 </version >
10
10
<licence >MIT</licence >
11
11
<
author mail =
" [email protected] " homepage =
" https://github.com/bigcat88" >Alexander Piskun</
author >
12
12
<namespace >PyAppV2_skeleton</namespace >
Original file line number Diff line number Diff line change 1
- nc_py_api [app ]>= 0.19.0
1
+ nc_py_api [app ]>= 0.19.1
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ # SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
3
+ # SPDX-License-Identifier: AGPL-3.0-or-later
4
+
2
5
set -e
3
6
4
7
# Only create a config file if HP_SHARED_KEY is set.
@@ -19,11 +22,12 @@ transport.tls.serverName = "harp.nc"
19
22
metadatas.token = "$HP_SHARED_KEY "
20
23
21
24
[[proxies]]
22
- name = "$APP_ID "
23
- type = "tcp"
24
- localIP = "127.0.0.1"
25
- localPort = $APP_PORT
26
25
remotePort = $APP_PORT
26
+ type = "tcp"
27
+ name = "$APP_ID "
28
+ [proxies.plugin]
29
+ type = "unix_domain_socket"
30
+ unixPath = "/tmp/exapp.sock"
27
31
EOF
28
32
else
29
33
echo " Directory /certs/frp not found. Creating configuration without TLS certificates."
@@ -36,11 +40,12 @@ transport.tls.enable = false
36
40
metadatas.token = "$HP_SHARED_KEY "
37
41
38
42
[[proxies]]
39
- name = "$APP_ID "
40
- type = "tcp"
41
- localIP = "127.0.0.1"
42
- localPort = $APP_PORT
43
43
remotePort = $APP_PORT
44
+ type = "tcp"
45
+ name = "$APP_ID "
46
+ [proxies.plugin]
47
+ type = "unix_domain_socket"
48
+ unixPath = "/tmp/exapp.sock"
44
49
EOF
45
50
fi
46
51
else
@@ -53,6 +58,6 @@ if [ -f /frpc.toml ] && [ -n "$HP_SHARED_KEY" ]; then
53
58
frpc -c /frpc.toml &
54
59
fi
55
60
56
- # Start the main Python application
61
+ # Start the main application (adjust it for your ExApp)
57
62
echo " Starting main application..."
58
63
exec python3 main.py
You can’t perform that action at this time.
0 commit comments