1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00

Rename ports

This commit is contained in:
Salamandar 2024-02-21 15:19:12 +01:00
parent c1eba19e9c
commit f2bceb1eac
3 changed files with 10 additions and 8 deletions

View file

@ -4,32 +4,32 @@ location / {
proxy_set_header Host $host; proxy_set_header Host $host;
proxy_set_header X-NginX-Proxy true; proxy_set_header X-NginX-Proxy true;
proxy_pass http://localhost:__WEB_ADMIN_PORT__; proxy_pass http://localhost:__PORT_WEB_ADMIN__;
proxy_redirect off; proxy_redirect off;
# Socket.io support # Socket.io support
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
proxy_read_timeout 86400s; proxy_read_timeout 86400s;
proxy_send_timeout 86400s; proxy_send_timeout 86400s;
# Include SSOWAT user panel # Include SSOWAT user panel
access_by_lua_file /usr/share/ssowat/access.lua; access_by_lua_file /usr/share/ssowat/access.lua;
location ~ \.(js|css|woff|woff2|ttf|png) { location ~ \.(js|css|woff|woff2|ttf|png) {
proxy_pass http://localhost:__WEB_ADMIN_PORT__; proxy_pass http://localhost:__PORT_WEB_ADMIN__;
} }
location ~ /webmin { location ~ /webmin {
proxy_pass http://localhost:__WEB_ADMIN_PORT__$uri; proxy_pass http://localhost:__PORT_WEB_ADMIN__$uri;
} }
location ~ ^/bma(.*)$ { location ~ ^/bma(.*)$ {
proxy_pass http://localhost:__LOCAL_BMA_PORT__$1$is_args$args; proxy_pass http://localhost:__PORT_LOCAL_BMA__$1$is_args$args;
} }
location /ws2p { location /ws2p {
proxy_pass http://localhost:__LOCAL_WS2P_PORT__; proxy_pass http://localhost:__PORT_LOCAL_WS2P__;
} }
} }

View file

@ -58,4 +58,6 @@ ram.runtime = "50M" # FIXME: replace with an **estimate** minimum ram requiremen
[resources.ports] [resources.ports]
local_bma.default = 10901 local_bma.default = 10901
local_ws2p.default = 20901 local_ws2p.default = 20901
# Dunno how to configure this…
web_admin.default = 9220 web_admin.default = 9220
web_admin.fixed = true

View file

@ -10,10 +10,10 @@
CONFIGURE_DUNITER() { CONFIGURE_DUNITER() {
ynh_exec_as "duniter" duniter --home "$data_dir" config \ ynh_exec_as "duniter" duniter --home "$data_dir" config \
--bma --ipv4 127.0.0.1 --port $bma_local_port --remoteh $domain --remotep 443 --noupnp --bma --ipv4 127.0.0.1 --port $port_bma_local --remoteh $domain --remotep 443 --noupnp
ynh_exec_as "duniter" duniter --home "$data_dir" config \ ynh_exec_as "duniter" duniter --home "$data_dir" config \
--ws2p-host 127.0.0.1 --ws2p-port $ws2p_local_port \ --ws2p-host 127.0.0.1 --ws2p-port $port_ws2p_local \
--ws2p-remote-host "$domain" --ws2p-remote-port 443 \ --ws2p-remote-host "$domain" --ws2p-remote-port 443 \
--ws2p-remote-path "/ws2p" --ws2p-noupnp --ws2p-remote-path "/ws2p" --ws2p-noupnp