-
I am currently running a PrivateBin instance using Docker, specifically the privatebin/nginx-fpm-alpine image from Docker Hub (privatebin/nginx-fpm-alpine). I launched the instance with the following command:
I want to customize the expiry times for self-destructing data in my PrivateBin instance. By default, PrivateBin has a predefined expiry time for pastes, but I'd like to set a specific time that suits my needs. In particular, I'd like to set a shorter expiry time or simply remove the 1 week 1 month 1 year and never expiry times, those are basically the ones that i don't want to have enabled. Could someone please guide me through the process of changing the expiry times in a PrivateBin Docker instance? Are there specific configurations or settings I should modify in the Docker container, and if so, what steps should I follow to make this adjustment? Any assistance or insights on this matter would be greatly appreciated. Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You need to mount a custom options file. See https://github.com/PrivateBin/docker-nginx-fpm-alpine?tab=readme-ov-file#custom-configuration There, you need to adjust the following options: |
Beta Was this translation helpful? Give feedback.
-
so i have to stop and delete the current container right? |
Beta Was this translation helpful? Give feedback.
You need to mount a custom options file. See https://github.com/PrivateBin/docker-nginx-fpm-alpine?tab=readme-ov-file#custom-configuration
There, you need to adjust the following options:
https://github.com/PrivateBin/PrivateBin/wiki/Configuration#expiration