Maintenance: Update dependency localhost to v1.3.0

This commit is contained in:
renovatebot
2024-04-15 08:31:41 +02:00
committed by Martin Gruner
parent bdf77fa95c
commit c8a66fc610
4 changed files with 7 additions and 7 deletions

View File

@@ -311,7 +311,7 @@ GEM
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
little-plugger (1.1.4)
localhost (1.2.0)
localhost (1.3.0)
logging (2.3.1)
little-plugger (~> 1.1)
multi_json (~> 1.14)

View File

@@ -1,4 +1,4 @@
vite: bundle exec script/vite-server.rb dev
web: bundle exec script/rails server -b "ssl://${ZAMMAD_BIND_IP:=127.0.0.1}" -p ${ZAMMAD_RAILS_PORT:=3000}
websocket: bundle exec script/websocket-server.rb -b ${ZAMMAD_BIND_IP:=127.0.0.1} -p ${ZAMMAD_WEBSOCKET_PORT:=6042} -k ~/.localhost/localhost.key -c ~/.localhost/localhost.crt -s start
websocket: bundle exec script/websocket-server.rb -b ${ZAMMAD_BIND_IP:=127.0.0.1} -p ${ZAMMAD_WEBSOCKET_PORT:=6042} -k ~/.local/state/localhost.rb/localhost.key -c ~/.local/state/localhost.rb/localhost.crt -s start
worker: bundle exec script/background-worker.rb start

View File

@@ -154,7 +154,7 @@ $ bundle install
## Using HTTPS
Zammad uses the gem `localhost` to automatically generate self-signed certificates. This will place `~./localhost/localhost.crt` and `~/.localhost/localhost.key` files if needed. Then you can use one of the following commands to start the development server:
Zammad uses the gem `localhost` to automatically generate self-signed certificates. This will place `~/.local/state/localhost.rb/localhost.crt` and `~/.local/state/localhost.rb/localhost.key` files if needed. Then you can use one of the following commands to start the development server:
```sh
$ VITE_RUBY_HOST=0.0.0.0 VITE_RUBY_HTTPS=true RAILS_ENV=development forego start -f Procfile.dev-https
@@ -195,11 +195,11 @@ Then, press Enter to continue the challenge process. If the certbot identifies y
Next, backup your current self-signed certificate files (if they exist) and create symbolic links to the new ones:
```sh
$ cd ~/.localhost
$ cd ~/.local/state/localhost.rb
$ mv localhost.crt localhost.crt.self-signed
$ mv localhost.key localhost.key.self-signed
$ ln -s /path/to/certs/live/localhost.example.com/cert.pem ~/.localhost/localhost.crt
$ ln -s /path/to/certs/live/localhost.example.com/privkey.pem ~/.localhost/localhost.key
$ ln -s /path/to/certs/live/localhost.example.com/cert.pem ~/.local/state/localhost.rb/localhost.crt
$ ln -s /path/to/certs/live/localhost.example.com/privkey.pem ~/.local/state/localhost.rb/localhost.key
```
You may need to adjust the paths depending on your subdomain name.

View File

@@ -15,7 +15,7 @@ import tsconfig from './tsconfig.base.json' assert { type: 'json' }
const dir = dirname(fileURLToPath(import.meta.url))
const SSL_PATH = resolve(homedir(), '.localhost')
const SSL_PATH = resolve(homedir(), '.local/state/localhost.rb')
// eslint-disable-next-line sonarjs/cognitive-complexity
export default defineConfig(({ mode, command }) => {