diff --git a/conf/install-conf.yml b/conf/install-conf.yml index 8c030ab..fc3d830 100644 --- a/conf/install-conf.yml +++ b/conf/install-conf.yml @@ -1,7 +1,7 @@ # Basic no-TLS config for the embedded gateway proxyconfig: binds: - - localhost:__PORT__ + - 127.0.0.1:__PORT__ reverseproxyurl: https://__DOMAIN__ tlsconfig: selfsigned: diff --git a/conf/nginx.conf b/conf/nginx.conf index ed70286..1589b56 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,12 +1,12 @@ location / { - proxy_pass https://localhost:__PORT__; + proxy_pass https://127.0.0.1:__PORT__; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } location /ws/ { - proxy_pass https://localhost:__PORT__; + proxy_pass https://127.0.0.1:__PORT__; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; diff --git a/conf/systemd.service b/conf/systemd.service index 36716ab..f66a0da 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -12,7 +12,7 @@ WorkingDirectory=__INSTALL_DIR__/ PermissionsStartOnly=true AmbientCapabilities=CAP_NET_BIND_SERVICE -ExecStart=__INSTALL_DIR__/cells start +ExecStart=__INSTALL_DIR__/cells start --grpc_discovery_port __PORT_DISCOVERY_GRPC__ --grpc_port __PORT_GRPC__ Restart=on-failure StandardOutput=journal StandardError=inherit @@ -24,8 +24,8 @@ SuccessExitStatus=0 # Add environment variables Environment=CELLS_ENABLE_METRICS=false -# Environment=CELLS_WORKING_DIR=__INSTALL_DIR__ -# Environment=CELLS_DATA_DIR=__DATA_DIR__ +Environment=CELLS_WORKING_DIR=__INSTALL_DIR__ +Environment=CELLS_DATA_DIR=__DATA_DIR__ [Install] WantedBy=multi-user.target diff --git a/manifest.toml b/manifest.toml index 87e6daa..2ebbca4 100644 --- a/manifest.toml +++ b/manifest.toml @@ -71,6 +71,9 @@ ram.runtime = "50M" api.protected = true [resources.ports] + main.default = 8080 + discovery_grpc.default = 50051 + grpc.default = 50052 [resources.apt] packages = "mariadb-server"