-
with this toml:
when starting I get this error:
I don’t understand why it tries to bind to port 80 as the toml specified port 443 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
and in my systemd unit file: |
Beta Was this translation helpful? Give feedback.
-
I use a toml file in order to have advanced section for redirecting from old domain |
Beta Was this translation helpful? Give feedback.
-
If you want to sandbox SWS using systemd then you have to use a file descriptor instead of binding to a tcp port. Follow https://static-web-server.net/features/file-descriptor-socket-passing/ for more details. And to change the server port used by the service, edit the value of |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer! What am I missing this time? EDIT: can’t access home, moved to /var/ and it works now, thank you again! |
Beta Was this translation helpful? Give feedback.
If you want to sandbox SWS using systemd then you have to use a file descriptor instead of binding to a tcp port. Follow https://static-web-server.net/features/file-descriptor-socket-passing/ for more details.
And to change the server port used by the service, edit the value of
ListenStream
in thestatic-web-server.socket
file example.