These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.3 KiB

7 months ago
  1. # Gopher Server
  2. ## Setup Server
  3. ### Docker
  4. The official container and documentation was made by [tiynger](https://hub.docker.com/r/tiynger/gopherserver).
  5. #### Environment-variables
  6. Set the following variables with the -e tag.
  7. | Name | Usage | Default |
  8. | ------------- | --------------------------------------------------- | --------- |
  9. | SERVER\_NAME | set this to your IP/Domain (no "gopher://" needed!) | localhost |
  10. #### Volumes
  11. Set the following volumes with the -v tag.
  12. | Volume-Name | Container mount | Description |
  13. | -------------------- | --------------- | ----------------------------- |
  14. | gopherwebdir | /var/gopher | directory for the gopher page |
  15. #### Ports
  16. Set the following ports with the -p tag.
  17. | Container port | Recommended outside port | Protocol | Description |
  18. | -------------- | ------------------------ | ---------- | ---------------------------- |
  19. | 70 | 70 | TCP | port for the gopher-protocol |
  20. #### Rebuild
  21. ```
  22. #!/bin/sh
  23. docker stop gopherserver
  24. docker rm gopherserver
  25. docker pull tiynger/gopherserver
  26. docker run --name gopherserver \
  27. --restart unless-stopped \
  28. -p 70:70 \
  29. -v gopherserver:/var/gopher \
  30. -e SERVER_NAME='domain.tld' \
  31. -d tiynger/gopherserver
  32. ```