This commit is contained in:
Éric Gaspar 2023-07-17 15:23:50 +02:00
parent dc38caa995
commit 4129b1c33b
4 changed files with 9 additions and 6 deletions

View file

@ -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:

View file

@ -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";

View file

@ -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

View file

@ -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"