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.

77 lines
2.3 KiB

7 months ago
  1. # Gopherproxy
  2. ## Setup Proxy
  3. ### Docker
  4. The official container and documentation was made by [prologic](https://hub.docker.com/r/prologic/gopherproxy).
  5. #### Ports
  6. Set the following ports with the -p tag.
  7. | Container Port | Recommended outside port | Protocol | Description |
  8. | -------------- | ------------------------ | -------- | ---------------------------------------- |
  9. | 8000 | 8000 | TCP | port to proxy the gopher site as http to |
  10. #### Additional
  11. There are some special variables to set.
  12. | Flag | Usage |
  13. | ---- | ------------------------------------------------------------- |
  14. | -uri | define the gopher site to proxy (just 'domain.tld' is enough) |
  15. #### Rebuild
  16. ```
  17. #!/bin/sh
  18. docker stop gopheroverhttp
  19. docker rm gopheroverhttp
  20. docker pull prologic/gopherproxy
  21. docker run --name gopheroverhttp \
  22. --restart unless-stopped \
  23. -p 8000:8000 \
  24. -d prologic/gopherproxy \
  25. -uri 'domain.tld'
  26. ```
  27. ## Setup Server
  28. ### Docker
  29. The official container and documentation was made by [tiynger](https://hub.docker.com/r/tiynger/gopherserver).
  30. #### Environment-variables
  31. Set the following variables with the -e tag.
  32. | Name | Usage | Default |
  33. | ------------- | --------------------------------------------------- | --------- |
  34. | SERVER\_NAME | set this to your IP/Domain (no "gopher://" needed!) | localhost |
  35. #### Volumes
  36. Set the following volumes with the -v tag.
  37. | Volume-Name | Container mount | Description |
  38. | -------------------- | --------------- | ----------------------------- |
  39. | gopherwebdir | /var/gopher | directory for the gopher page |
  40. #### Ports
  41. Set the following ports with the -p tag.
  42. | Container port | Recommended outside port | Protocol | Description |
  43. | -------------- | ------------------------ | ---------- | ---------------------------- |
  44. | 70 | 70 | TCP | port for the gopher-protocol |
  45. #### Rebuild
  46. ```
  47. #!/bin/sh
  48. docker stop gopherserver
  49. docker rm gopherserver
  50. docker pull tiynger/gopherserver
  51. docker run --name gopherserver \
  52. --restart unless-stopped \
  53. -p 70:70 \
  54. -v gopherserver:/var/gopher \
  55. -e SERVER_NAME='domain.tld' \
  56. -d tiynger/gopherserver
  57. ```