Skip to content

Commit

Permalink
Add SSL certificate folder and path link to these files on /contrib/p…
Browse files Browse the repository at this point in the history
…roxbox.service systemd file
  • Loading branch information
emersonfelipesp committed Nov 22, 2024
1 parent 6fd8b62 commit 9101c36
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contrib/proxbox.service
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Group=netbox
PIDFile=/var/tmp/proxbox.pid
WorkingDirectory=/opt/netbox/netbox/netbox-proxbox

ExecStart=/opt/netbox/venv/bin/uvicorn netbox-proxbox.netbox_proxbox.main:app --host 0.0.0.0 --port 8800 --app-dir /opt/netbox/netbox
ExecStart=/opt/netbox/venv/bin/uvicorn netbox-proxbox.netbox_proxbox.main:app --host 0.0.0.0 --port 8800 --app-dir /opt/netbox/netbox --ssl-keyfile=/opt/netbox/netbox/netbox-proxbox/ssl/proxbox.key --ssl-certfile=proxbox.crt

Restart=on-failure
RestartSec=30
Expand Down
2 changes: 1 addition & 1 deletion netbox_proxbox/templates/netbox_proxbox/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
const uvicornHost = "{{ configuration.netbox_proxbox.fastapi.uvicorn_host }}"
const uvicornPort = "{{ configuration.netbox_proxbox.fastapi.uvicorn_port }}"

const fastapiEndpoint = `http://${uvicornHost}:${uvicornPort}`
const fastapiEndpoint = `https://${uvicornHost}:${uvicornPort}`
const websocketEndpoint = `wss://${uvicornHost}:${uvicornPort}/ws`

// Instantiate WebSocket connection to FastAPI backend.
Expand Down
24 changes: 24 additions & 0 deletions ssl/proxbox.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-----BEGIN CERTIFICATE-----
MIIECzCCAvOgAwIBAgIUdW+lsV6uUnGlq4MpzSgVPYb43TgwDQYJKoZIhvcNAQEL
BQAwgZQxCzAJBgNVBAYTAkJSMRIwEAYDVQQIDAlTYW8tUGF1bG8xDjAMBgNVBAcM
BUNvdGl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VDOOpLVJZFpl
M0BI3wkAxnwJZ0i/GvGCWKAQEXZ0FYQuIGZ/TW8ijDR8O70lI8BwM/YwW9CeYwSK
Mz/21+h4QDwtCPhQ13S4cVkpFPJqp1eiLuZB0/uktMjLEBw6LxLoA6pRAMvJSYpZ
sVcM6CMtY/XJDlaU77C3Hk2MD9OKH9dt9JYl6hBwPw==
-----END CERTIFICATE-----
28 changes: 28 additions & 0 deletions ssl/proxbox.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQClw5Y9c0YI1Dvz
UV+8GuCCWdUvTQmfSHnwFIlaB5pduLCclhEBv0XzpWF6MIkGUIfzvBgess+VEGAX
YZb+DLdnT9VY/nsBgrQAjNVPBTJ/GPAyRuOuDFle2E+rF7VfYfTu+Ak4iigzklRu
NJzBvBAtdhenLI3TSt794+A5bqjFm/GmyjbnyGlf4IeBTD7jNUNzFuLVnuOfFqlV
DEEkYpR0GvJw0tWGFTrTxBJPzEQIaK2I3QD3RKyhNDxlD46M5nwgYf+yNwmmIZ3y
Hx6ykyuw4kD8ioh+/yju0F76jKKMk0ZjnM0/VNd1N/WvPlGkAHdXMcsEYB/Y78Lg
Y3KJ37IfAgMBAAECggEATa2M3vkAzaxe95OfcC+MG6lrHEJWivzUn2uQPc8oSFj+
8jHkgFQYvKc4OaE65Omh+9ad2uziF7FXxj0mG6Dr5Q7lJFIEZF3SahuU7fW6hxKx
pG3RzcLdsnNdSgjPJoZp1/4FnCgp1Jjy1b3z41l0n0kipmVbhLMmMgWyElfH4OmE
z7GnhmefjQaD+l21Dxf1NAUtXmTkkAIbIswhxg4fibr2zbTZXFT9ZeTA42T1Sv9y
3lGCYLUbrv21ftfSO/ffAzDSJG6kghHSYADmQwZeBcUEFQ+DW9sxwZAZXAaFiNP9
CsDYrm9P8d2+J4MF38Q4zFQ17Lbj9KFuu6+yISIjkQKBgQDO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